Regular Expression Help

2011-06-14 Thread Patrick Kerley
I have a regular expression issue. I have information that says: ~{Test Information/a/li That in a series of processing should look like ~{Test Information}~/a/li   Any idea in a rereplace how I can replace anything that is ~{*/a/li with ~{*}~/a/li Thanks Pat - Patrick Kerley

Re: Regular Expression Help

2011-06-14 Thread Patrick Santora
If you'd like you can use the underlying java implementation of replaceAll. Cfset str = ~{Test Information2/a/li~{Test Information/a/li~{Test Information4/a/li~{Test Information/a/li / cfdump var=#str.replaceAll( ([a-zA-Z0-9])/a/li, $1}~/a/li )# / Should show: ~{Test Information2}~/a/li~{Test

Re: Regular Expression Help

2011-06-14 Thread Patrick Santora
This might be more of what you are looking for. It captures special characters as well and should fit more in line to what you want. Cfset str = ~{Test Infor$%mation2$/a/li~{Test Information/a/li~{Test Information4/a/li~{Test Information/a/li / cfdump var=#str.replaceAll( (~\{.*?)/a/li,

Re: Regular Expression Help

2011-06-14 Thread Peter Boughton
Give this a go: cfset Result = InputText.replaceAll ( '~\{(?:(?!/a).)+(?!\}~)(?=/a/li)' , '$0}~' ) / It uses the java replaceAll regex function so that it can do the negative lookbehind to ensure existing correct items are not changed, meaning it can be run

Re: Regular Expression Help

2011-06-14 Thread Patrick Kerley
Sent: Tuesday, June 14, 2011 12:16 PM Subject: Re: Regular Expression Help Give this a go:     cfset Result = InputText.replaceAll         ( '~\{(?:(?!/a).)+(?!\}~)(?=/a/li)'         , '$0}~'         ) / It uses the java replaceAll regex function so that it can do the negative lookbehind

Regular Expression help

2008-10-31 Thread Matthew Friedman
Please help, banging my head against a wall and my deadline is up... I need to search a text filed of html formatted text to see if the user enter in bad words I have it all set to go but the regexp is giving me trouble. I am looping over the list of badwords and checking the variable skills.

Re: Regular Expression help

2008-10-31 Thread Jason Fisher
I think you want something like this: cfif REFindnocase(([\s\]#badword#[\s\]),skills) You may want to expand it to non-alphanumeric wrappers, though, to catch punctuation: he gave her a kiss. cfif REFindnocase(([\W]#badword#[\W]),skills) which is the same as cfif

Re: Regular Expression help

2008-10-31 Thread Matthew Friedman
Not sure what I am doing wrong but this is not working. I have the string kissess are goodbrkissbrthe girlfriend Kiss is a badword, and this regexp is not picking it up. Please advise and thanks for your help. Matt I think you want something like this: cfif

Re: Regular Expression help

2008-10-31 Thread Jason Fisher
Hm, that should work, certainly. Did you try that 3rd option? cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),skills) That should find any use of the word 'kiss' when it's surrounded by any non-alpha characters. Sadly I don't have access to my CF environment right at the moment,

Re: Regular Expression help

2008-10-31 Thread Jason Fisher
Forgot about Ryan Swanson's slick little tool. It certainly validates and picks up the middle 'kiss' in his validator, using either '\W' or '^a-zA-Z0-9_' as the filter: http://ryanswanson.com/regexp/#start ~| Adobe®

Re: Regular Expression help

2008-10-31 Thread Matthew Friedman
Figured out the issue, this works great. Thank you, thank you, thank you ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Regular Expression help

2008-10-31 Thread Matthew Friedman
I just found an issue with this regexp cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),clean_skills) this works great if it is not the first word or only word in the string. what do I need to do to update the regexp to pick up the bad word it is the first last or only word in the

Re: Regular Expression help

2008-10-31 Thread Sonny Savage
Typo: cfif REFindnocase(((^|\W)#badword#(\W|$)),clean_skills) On Fri, Oct 31, 2008 at 1:09 PM, Sonny Savage [EMAIL PROTECTED] wrote: cfif REFindnocase(((^|\W)#badword#(\W|$),clean_skills) On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman [EMAIL PROTECTED]wrote: I just found an issue with

Re: Regular Expression help

2008-10-31 Thread Jason Fisher
Good call. Try this, seems to work in initial testing: cfif REFindnocase(((^|[^a-zA-Z0-9_])#badword#([^a-zA-Z0-9_]|$)), clean_skills) I just found an issue with this regexp cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]), clean_skills) this works great if it is not the first

Re: Regular Expression help

2008-10-31 Thread Sonny Savage
cfif REFindnocase(((^|\W)#badword#(\W|$),clean_skills) On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman [EMAIL PROTECTED] wrote: I just found an issue with this regexp cfif REFindnocase(([^a-zA-Z0-9_]#badword#[^a-zA-Z0-9_]),clean_skills) this works great if it is not the first word or

Re: Regular Expression Help on Email Addresses

2007-02-21 Thread Eric Haskins
I am working on a variable mask version as I have time. This one will atleast mask the domain for now. Eric On 2/20/07, Eric Haskins [EMAIL PROTECTED] wrote: cfset email = ReReplaceNocase(email, ([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}), [EMAIL PROTECTED])/ Try

Re: Regular Expression Help on Email Addresses

2007-02-21 Thread Eric Haskins
cfset variables.domainlen = Len(ReReplaceNocase(attributes.email, ([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}), \2)) - 1 cfset variables.mask = cfloop from=1 to=#variables.domainlen# index=i cfset variables.mask = variables.mask * /cfloop cfset variables.email =

Regular Expression Help on Email Addresses

2007-02-20 Thread K Simanonok
I would like to use a regular expression to camouflage email addresses in a forum I'm building. I'd like to replace just the domain name (not the .com or .net or other extension though) with x's: FROM THIS: [EMAIL PROTECTED] TO THIS:[EMAIL PROTECTED] Where the number of x's exactly

Regular Expression Help on Email Addresses

2007-02-20 Thread K Simanonok
I would like to use a regular expression to camouflage email addresses in a forum I'm building. I'd like to replace just the domain name (not the .com or .net or other extension though) with x's: FROM THIS: [EMAIL PROTECTED] TO THIS:[EMAIL PROTECTED] Where the number of x's exactly

Re: Regular Expression Help on Email Addresses

2007-02-20 Thread Eric Haskins
cfset email = ReReplaceNocase(email, ([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3}), [EMAIL PROTECTED])/ Try this one Eric On 2/20/07, K Simanonok [EMAIL PROTECTED] wrote: I would like to use a regular expression to camouflage email addresses in a forum I'm building.

Regular Expression Help on Email Addresses

2007-02-20 Thread K Simanonok
I would like to use a regular expression to camouflage email addresses in a forum I'm building. I'd like to replace just the domain name (not the .com or .net or other extension though) with x's: FROM THIS: [EMAIL PROTECTED] TO THIS:[EMAIL PROTECTED] Where the number of x's exactly

Re: Regular Expression Help on Email Addresses

2007-02-20 Thread Ben Doom
Offhand, I think your best bet is to use a regex to identify everything from the @ to the TLD, then use the len returned by refind to do a replace of it. There are a number of really good regexes for finding/dissecting emails out there. CFLib.org is a good place to start. --Ben Doom K

Regular Expression Help

2007-01-29 Thread Lee.S.Surma
How would you do numbers under one hundred with a limit of 7 decimals? Lee Surma Applications Systems Engineer Wells Fargo Corporate Trust [EMAIL PROTECTED] 612-667-4066 ~| Upgrade to Adobe ColdFusion MX7 Experience

RE: Regular Expression Help

2007-01-29 Thread Ben Nadel
Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 10:06 AM To: CF-Talk Subject: Regular Expression Help How would you do numbers under one hundred with a limit of 7 decimals? Lee Surma

Re: Regular Expression Help

2007-01-29 Thread Ben Doom
Ben Nadel wrote: Not really sure what exactly you are looking to do, but the regular expression pattern for numbers under 100 with 7 decimals would be: \d{2}(\.\d{1,7})? I'd anchor it, assuming that this is supposed to be the whole string: ^\d{2}(\.\d{1,7})?$ --Ben Doom

RE: Regular Expression Help

2007-01-29 Thread Ben Nadel
: Regular Expression Help Ben Nadel wrote: Not really sure what exactly you are looking to do, but the regular expression pattern for numbers under 100 with 7 decimals would be: \d{2}(\.\d{1,7})? I'd anchor it, assuming that this is supposed to be the whole string: ^\d{2}(\.\d{1,7})?$ --Ben

RE: Regular Expression Help

2007-01-29 Thread Bobby Hartsfield
That would not match 0 through 9.999 unless they were formatted into 2 digit numbers like 00, 01, etc... 09.999 It also wouldn’t match anything between 1 and 0 like .999 unless it was formatted like 00.999 Try this one: ^\d{0,2}(\.\d{1,7})?$ I don’t know what you are using it for

RE: Regular Expression Help....

2007-01-24 Thread Ben Nadel
Expression Help Hi, RegExp's are not my forte and I need to create a function that will extract URL's from a body of text and return it in a list. I have a function that extracts the anchor tags from a document, but I need to acurately extract the URL from that anchor tag. I can do a find

RE: Regular Expression Help....

2007-01-24 Thread Dave Phillips
:31 PM To: CF-Talk Subject: Re: Regular Expression Help Dave how did it turn out?? ~Eric ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http:http

Regular Expression Help....

2007-01-23 Thread Dave Phillips
Hi, RegExp's are not my forte and I need to create a function that will extract URL's from a body of text and return it in a list. I have a function that extracts the anchor tags from a document, but I need to acurately extract the URL from that anchor tag. I can do a find for 'href' and so

RE: Regular Expression Help....

2007-01-23 Thread Andy Matthews
This page might get you pointed in the right direction. http://foad.org/~abigail/Perl/url2.html -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 8:36 AM To: CF-Talk Subject: Regular Expression Help Hi, RegExp's are not my forte

RE: Regular Expression Help....

2007-01-23 Thread Andy Matthews
This one might be better: http://www.manamplified.org/archives/000318.html -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 9:50 AM To: CF-Talk Subject: RE: Regular Expression Help This page might get you pointed in the right

Re: Regular Expression Help....

2007-01-23 Thread Dave Phillips
Thanks, I'm working on something with that now, but does anyone know if there is a function or tag out there someone has already written that does this? It seems that I should not be the first person who needs to feed a function a body of text and get back a list of the URL's in that text.

Re: Regular Expression Help.... (Solution?)

2007-01-23 Thread Dave Phillips
I think I have a solution, but if a few of you could review and see if it can be any faster or more efficient (or if I'm missing something) I'd appreciate it. To find the end of the URL I'm looking for a single quote, double quote or space. function extractURLs(inputString) { var

RE: Regular Expression Help....

2007-01-23 Thread Ben Nadel
? www.bennadel.com/ask-ben/ -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 9:55 AM To: CF-Talk Subject: Re: Regular Expression Help Thanks, I'm working on something with that now, but does anyone know if there is a function or tag out there someone

RE: Regular Expression Help.... (Solution?)

2007-01-23 Thread Ben Nadel
, 2007 10:25 AM To: CF-Talk Subject: Re: Regular Expression Help (Solution?) I think I have a solution, but if a few of you could review and see if it can be any faster or more efficient (or if I'm missing something) I'd appreciate it. To find the end of the URL I'm looking for a single quote

Re: Regular Expression Help....

2007-01-23 Thread Dave Phillips
Hi, The RegExp below is giving me more than I want. It is returning things that I don't want: mailto: urn:schemas-microsoft-com:office:office and others. I want to chnage it to only return url's starting with http: or https:. Here's what I currently have:

Re: Regular Expression Help....

2007-01-23 Thread Eric Haskins
When I test it tells me not enough ( I am troubleshooting it now out sick today but list draws me back everytime lol Eric On 1/23/07, Dave Phillips [EMAIL PROTECTED] wrote: Hi, The RegExp below is giving me more than I want. It is returning things that I don't want: mailto:

RE: Regular Expression Help....

2007-01-23 Thread Bobby Hartsfield
Try this one https?:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/##!@:=\+~_]+[A-Za-z0-9\/ ]) -Original Message- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 2:03 PM To: CF-Talk Subject: Re: Regular Expression Help Hi, The RegExp below is giving me

Re: Regular Expression Help....

2007-01-23 Thread Eric Haskins
(?:href=|href=|href=')((?:http|https)://(.+))(?:|'|) Does this help at all??? This will find all http or https links?? Eric On 1/23/07, Eric Haskins [EMAIL PROTECTED] wrote: When I test it tells me not enough ( I am troubleshooting it now out sick today but list draws me back

RE: Regular Expression Help....

2007-01-23 Thread Bobby Hartsfield
, January 23, 2007 2:03 PM To: CF-Talk Subject: Re: Regular Expression Help Hi, The RegExp below is giving me more than I want. It is returning things that I don't want: mailto: urn:schemas-microsoft-com:office:office and others. I want to chnage it to only return url's starting with http

Re: Regular Expression Help....

2007-01-23 Thread Eric Haskins
Dave how did it turn out?? ~Eric ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs

Regular Expression Help

2006-04-13 Thread cf coder
Hello Everybody, I'm having problems writing a regular expression. I'm trying to pass a string to flash and want to strip off and replace the html tags with a br tag but also leave any b, span, i, strong, div, br, and p tags. This is what I've done so far: cfscript function StripHTML(str) {

Regular expression help

2005-08-10 Thread John Munyan
Hi, I have an url such as http://www.blah.com/something/somethingelse/default.cfm stored in a database. I wish to use this information as links to others site which have similar reviews. I would like to parse down the full url to on the domain i.e. http://www.blah.com http://www.blah.com/ - for

RE: Regular expression help

2005-08-10 Thread Jim Davis
-Original Message- From: John Munyan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 3:03 AM To: CF-Talk Subject: Regular expression help Hi, I have an url such as http://www.blah.com/something/somethingelse/default.cfm stored in a database. I wish to use

Regular Expression help

2005-05-31 Thread Rey Bango
Guys, I have the following email check but it won't accept a .info email address. I'm not a regular expression expert and was hoping someone could help me out with this. How could I update the following script to accept domain suffixes other than .com, .net .org? function isEmail(str) {

Re: Regular Expression help

2005-05-31 Thread Rey Bango
I found the fix guys!!! Amazing what a little Googling will do. :P Rey... Rey Bango wrote: Guys, I have the following email check but it won't accept a .info email address. I'm not a regular expression expert and was hoping someone could help me out with this. How could I update the

Regular Expression Help

2004-11-05 Thread Daniel Farmer
I'm searching a long string and looking for the value input type=hidden name=BV_SessionID value=any value here what kind of syntax would I use to grab the value of the above tag. ~| Special thanks to the CF Community Suite Gold

RE: Regular Expression Help

2004-11-05 Thread Pascal Peters
REReplaceNoCase(text,'^.*input type=hidden name=BV_SessionID value=([^]*).*$',\1) Pascal -Original Message- From: Daniel Farmer [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 10:24 To: CF-Talk Subject: Regular Expression Help I'm searching a long string and looking

Re: Regular Expression Help

2004-11-05 Thread Daniel Farmer
Thanks Pascal... but I am having problems implementing cfset theval = #REFind('^.*input type=hidden name=BV_SessionID value=([^]*).*$',\1,)#, cfhttp.filecontent, startpos )# ~| Special thanks to the CF Community Suite Gold

RE: Regular Expression Help

2004-11-05 Thread Gavin Brook
- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 10:43 To: CF-Talk Subject: RE: Regular Expression Help REReplaceNoCase(text,'^.*input type=hidden name=BV_SessionID value=([^]*).*$',\1) Pascal -Original Message- From: Daniel Farmer [mailto:[EMAIL PROTECTED

RE: Regular Expression Help

2004-11-05 Thread Pascal Peters
cfset theval = REReplaceNoCase(cfhttp.filecontent,'^.*input type=hidden name=BV_SessionID value=([^]*).*$',\1) Pascal -Original Message- From: Daniel Farmer [mailto:[EMAIL PROTECTED] Sent: 05 November 2004 11:10 To: CF-Talk Subject: Re: Regular Expression Help Thanks Pascal

RE: Regular Expression Help

2004-11-05 Thread Pascal Peters
November 2004 12:11 To: CF-Talk Subject: RE: Regular Expression Help Pascal, Would it be possible for you to explain a bit more about what each part of the RegEx is doing? I'm trying to do something similar and I'm having no end of trouble getting the RegEx right. MM documentation

Regular expression help with dictionary definitions

2004-07-13 Thread Paul Vernon
Ok, This one is killing me.. And my CFMX server... Currently I'm using the following code to parse some text: cfset teststr = definition cfset st = ReFindNoCase({[^}]*}, teststr, 1, true) cfloop condition=st.pos[1] GT 0 cfset replaceme = mid(teststr, st.pos[1], st.len[1])

RE: Regular expression help with dictionary definitions

2004-07-13 Thread Pascal Peters
If this is the actual code you are using, you are creating an infinite loop because you always start looking at the start position 1 in your REFind. It will keep matching the first {}. It really depends what you are trying to grab. If you are trying to get only the inner parentheses it is not too

RE: FIXED - Regular expression help with dictionary definitions

2004-07-13 Thread Paul Vernon
Sorry for the original and long post... I fixed it... The regular _expression_ changed to {[^{^}]*} and I changed the startpos for the next REFindNoCase so it skipped the nesting issues... cfset st = ReFindNoCase({[^{^}]*}, teststr, 1, true) cfloop condition=st.pos[1] GT 0 cfset

RE: FIXED - Regular expression help with dictionary definitions

2004-07-13 Thread Pascal Peters
This is not exactly what you are trying to say: [^{^}] == anything but { or } or ^ Correct: [^{}] Pascal PS Give the REReplace with the backreferencing (see my previous post) a shot. It is only 1 line to do the same thing. -Original Message- From: Paul Vernon [mailto:[EMAIL

RE: FIXED - Regular expression help with dictionary definitions

2004-07-13 Thread Paul Vernon
PS Give the REReplace with the backreferencing (see my previous post) a shot. It is only 1 line to do the same thing. Pascal, you are a STAR! The backreferencing wasn't quite there as I wanted to remove all of the extra parentheses also but a simple replacelist wrapped around your elegant

RE: FIXED - Regular expression help with dictionary definitions

2004-07-13 Thread Pascal Peters
Don't do the replace, just don't include the {} in the REreplace. Although I may have overlooked something: You really should do a URLEncodedFormat() of the word (which doesn't work with the backreferencing). function MakeLinks(text,dictionary){ var st = StructNew(); var start = 1; var word =

RE: Regular Expression Help

2004-05-18 Thread Pascal Peters
On CFMX stTmp = REFindNoCase('msg:(.*?);',str,1,true); if(stTmp.pos[1]){ message = Mid(str,stTmp.pos[2],stTmp.len[2]); } else { message = ; } ON CF5 stTmp = REFindNoCase('msg:(([^]|[^;])*);',str,1,true); if(stTmp.pos[1]){ message = Mid(str,stTmp.pos[2],stTmp.len[2]); } else { message = ; }

Regular Expression Help

2004-05-17 Thread Ian
I'm trying to parse a string and pluck a bit of text, but my regex isn't working :( Here's a sample string: (msg:My Message Here; content:My Content Here;) I want to return My Message Here. And here's my regex: refindnocase(msg:[[:print:]]+;, mystring) I'm using print as mystring may contain

RE: Regular Expression Help

2004-05-17 Thread Marlon Moyer
This should work. cfset test = (msg:My Message Here; content:My Content Here;) cfset temp = refindnocase(msg:([^;]*),test,1,yes) cfloop from=1 to=#arraylen(temp.pos)# index=i cfoutput#mid(test,temp.pos[i],temp.len[i])#br/cfoutput /cfloop -- Marlon Moyer, Sr. Internet Developer American

RE: Regular expression help

2004-02-17 Thread Pascal Peters
cfscript regexp = ##[[:space:]]*([0-9]{2-3}); stTmp = REFindNoCase(regexp,str,1,true); if(stTmp.pos[1]) result = Mid(str,stTmp.pos[2],stTmp.len[2]); else result = ; /cfscript If you need to find all, you do it in a loop: cfscript regexp = ##[[:space:]]*([0-9]{2-3}); results = ArrayNew(1);

Regular expression help

2004-02-16 Thread Andy Ousterhout
What regular _expression_ would find a # followed by any number of blanks, followed by 2-3 numbers For example, I want to return 45 from this string: Testing this string # 45 to 46 Andy [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Regular expression help

2004-02-16 Thread Matthew Walker
How about this? cfset result = reFind(##[[:space:]]*([[:digit:]]+), myString, 1, true) cfif result.pos[1] cfoutput#mid(myString, result.pos[2], result.len[2])#/cfoutput /cfif -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 February 2004 11:05 a.m.

I'm gonna need some regular expression help here...

2003-10-13 Thread Jeff
Got a cfinput, it's required, and the validation is a regular _expression_. The Problem: The regular _expression_ isn't allowing a capital letter after the '@'. I'm sure there are other faults with this regular _expression_, but you see...I'm just not there yet when it comes to troubleshooting

RE: I'm gonna need some regular expression help here...

2003-10-13 Thread Bosky, Dave
Here's a nice little _expression_ I use. var chkEmail= /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{ 2})?)$/i; if ((form.Email.value.length 6 ) || (chkEmail.test(form.Email.value) == false)) { var msg= Email address entry error!\n\nPlease a valid email

Re: I'm gonna need some regular expression help here...

2003-10-13 Thread Ben Doom
This regex was intended to be used with a case-insensitive regular _expression_ checker.To make it case insensitive, there are two things you'll have to do. replace a-z in brackets with a-zA-Z replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE CAPITALIZATION POSSIBILITY.

Re: I'm gonna need some regular expression help here...

2003-10-13 Thread Thomas Chiverton
On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote: replace each of aero, coop, info, museum, and name with EVERYPOSSIBLE CAPITALIZATION POSSIBILITY. Or alternatively, don't bother checking the TLD against a static list, because eventualy a new one will crop up, and you'll wind people up who have

Re: I'm gonna need some regular expression help here...

2003-10-13 Thread Ben Doom
I use: ^[a-zA-Z]([.]?([[:alnum:]_-]+[.]?)*[[:alnum:]_-])?@([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$ which, admittedly, won't allow .museum addresses, but will match most common emails. --Ben Doom Thomas Chiverton wrote: On Monday 13 Oct 2003 17:01 pm, Ben Doom wrote: replace each of aero, coop,

Regular Expression Help

2003-09-26 Thread kelly
Ok I suck at reg expressions.Basically I have some data and within the data there is some stuff I want to remove.Example text text a href="" href="http://www.blah.comblah">http://www.blah.comblah blah blah blah/a text text Ok basically I want to remove everything from a href through /a although

Re: Regular Expression Help

2003-09-26 Thread Ben Doom
What version of CF?--Ben the RegEx Ninja Doomkelly wrote:Ok I suck at reg expressions.Basically I have some data and within the data there is some stuff I want to remove.Example text text a href="" href="http://www.blah.comblah">http://www.blah.comblah http://www.blah.comblah blah blah blah/a

Re: Regular Expression Help

2003-09-26 Thread Claude Schneegans
Ok basically I want to remove everything from a href through /a althoughit will be different on every line.This is tipically the situation why I developed CF_REextract (seehttp://www.contentbox.com/claude/customtags/tagstore.cfm?p=hf(see specs and examples)The tag will find all occurences, and

Repost: Regular Expression Help

2003-08-14 Thread Patricia G . L . Hall
I tried to post this yesterday from the archives and I screwed it up. So.. reposting. I am dealing with a site that has been ripped apart by search and replace in Homesite+. Tags that used to look like: td select name=sel_costarts size=20 class=formSelectColumnsLarge td

Re: Repost: Regular Expression Help

2003-08-12 Thread Patricia G . L . Hall
- : From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED] : Sent: Friday, August 08, 2003 8:41 AM : To: CF-Talk : Subject: Repost: Regular Expression Help : : : I tried to post this yesterday from the archives and I screwed it up. : So.. reposting. : : I am dealing with a site that has been

RE: Repost: Regular Expression Help

2003-08-09 Thread Ben Doom
Moonbow Software, Inc : -Original Message- : From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED] : Sent: Friday, August 08, 2003 8:41 AM : To: CF-Talk : Subject: Repost: Regular Expression Help : : : I tried to post this yesterday from the archives and I screwed it up. : So.. reposting. : : I am

Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
I am trying to use a regular expression to change all possible special characters in a string to underscores because I am trying to use the string as a variable name. Regular expressions are not my specialty and I am running into problems using some characters in my reReplace function. Could

RE: Regular Expression Help

2002-12-06 Thread Joshua Miller
] * -Original Message- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 12:31 PM To: CF-Talk Subject: Regular Expression Help I am trying to use a regular expression to change all possible special characters in a string to underscores

RE: Regular Expression Help

2002-12-06 Thread Joshua Miller
] * -Original Message- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 12:31 PM To: CF-Talk Subject: Regular Expression Help I am trying to use a regular expression to change all possible special characters

RE: Regular Expression Help

2002-12-06 Thread Mike Townend
Something like CFSET sNewString = REReplace(sOldString, [[:punct:][:space:]], , ALL) HTH -Original Message- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 6, 2002 17:31 To: CF-Talk Subject: Regular Expression Help I am trying to use a regular expression

RE: Regular Expression Help

2002-12-06 Thread Raymond Camden
, December 06, 2002 11:31 AM To: CF-Talk Subject: Regular Expression Help I am trying to use a regular expression to change all possible special characters in a string to underscores because I am trying to use the string as a variable name. Regular expressions are not my specialty and I am

RE: Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
That was what I was looking for, I just had not found it yet. Thanks -Original Message- From: Joshua Miller [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:42 AM To: CF-Talk Subject: RE: Regular Expression Help ReReplaceNoCase(string,[[:punct:]],_,ALL) Joshua Miller

RE: Regular Expression Help

2002-12-06 Thread Raymond Camden
: Friday, December 06, 2002 11:43 AM To: CF-Talk Subject: RE: Regular Expression Help Oh, forgot the space use [[:punct:]]||[[:space:]] as the RegEX Joshua Miller Head Programmer / IT Manager Garrison Enterprises Inc. www.garrisonenterprises.net [EMAIL PROTECTED] (704) 569-9044 ext

RE: Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
How do you not replace a non-existent space before and after the string? Everything else works great. Thanks -Original Message- From: Joshua Miller [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:43 AM To: CF-Talk Subject: RE: Regular Expression Help Oh, forgot the space

RE: Regular Expression Help

2002-12-06 Thread Teel, C. Doug
I think you accidentally doubled the pipes between the punct and space. It should be: [[:punct:]]|[[:space:]] Thanks, Doug -Original Message- From: Joshua Miller [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:43 AM To: CF-Talk Subject: RE: Regular Expression Help Oh

RE: Regular Expression Help

2002-12-06 Thread Rob Rohan
]] Sent: Friday, December 06, 2002 11:43 AM To: CF-Talk Subject: RE: Regular Expression Help Oh, forgot the space use [[:punct:]]||[[:space:]] as the RegEX Joshua Miller Head Programmer / IT Manager Garrison Enterprises Inc. www.garrisonenterprises.net [EMAIL PROTECTED] (704) 569-9044

RE: Regular Expression Help

2002-12-06 Thread Raymond Camden
My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:53 AM To: CF-Talk Subject: RE: Regular Expression Help How do you not replace a non-existent space before and after

RE: Regular Expression Help

2002-12-06 Thread Joshua Miller
] * -Original Message- From: Rob Rohan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 12:54 PM To: CF-Talk Subject: RE: Regular Expression Help lastly, you could think backwards [^A-Za-z0-9] Rob http

RE: Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
' returns '_some_phrase_' instead of 'some_phrase' which is what I was looking for. Thanks -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:54 AM To: CF-Talk Subject: RE: Regular Expression Help What is a non-existent space? How could

RE: Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
Yep, this is probably the safest bet and produces the expected result. Thanks -Original Message- From: Rob Rohan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:54 AM To: CF-Talk Subject: RE: Regular Expression Help lastly, you could think backwards [^A-Za-z0-9] Rob

RE: Regular Expression Help

2002-12-06 Thread Joshua Miller
and advise us by return e-mail to [EMAIL PROTECTED] * -Original Message- From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 1:03 PM To: CF-Talk Subject: RE: Regular Expression Help

RE: Regular Expression Help

2002-12-06 Thread Jeff D. Chastain
, the first method works just fine and is probably safer. -Original Message- From: Joshua Miller [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 12:30 PM To: CF-Talk Subject: RE: Regular Expression Help Did you TRIM the variable first? That may help ... Perhaps there's whitespace

RE: Regular Expression Help

2002-12-06 Thread Ben Doom
] : : * : : : -Original Message- : From: Jeff D. Chastain [mailto:[EMAIL PROTECTED]] : Sent: Friday, December 06, 2002 12:31 PM : To: CF-Talk : Subject: Regular Expression Help : : : I am trying to use a regular

regular expression help

2002-07-09 Thread Mark Warrick
Hello, I've got a form field in which I want to allow people to enter HTML tags (formatted stories for the web), but only a limited set of them such as heading, bold, and italic tags so that they don't mess up the overall formatting of the page. What I'd like to do is automatically strip out

RE: regular expression help

2002-07-09 Thread Tangorre, Michael
. For what that's worth... Mike -Original Message- From: Mark Warrick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:50 PM To: CF-Talk Subject: regular expression help Hello, I've got a form field in which I want to allow people to enter HTML tags (formatted stories

Re: regular expression help

2002-07-09 Thread Michael Dinowitz
If you have a limited range of accepted tags then the following will probably be your best bet. 1. find all of the tags you want to allow. 2. replace their brackets with some non-standard character (like a yen symbol). 3. remove all other tags that exist. 4. replace your yen with brackets

RE: Regular Expression Help

2002-03-03 Thread Pascal Peters
-Talk Subject: Re: Regular Expression Help On Sat, 2002-03-02 at 10:10, Jared Stark wrote: Hello all. I am trying to write a simple search engine, and would like to replace certain commonly used prepositions from the search string such as 'a','the','for', etc... I have an array

Re: Regular Expression Help

2002-03-02 Thread James Sleeman
On Sat, 2002-03-02 at 10:10, Jared Stark wrote: Hello all I am trying to write a simple search engine, and would like to replace certain commonly used prepositions from the search string such as 'a','the','for', etc I have an array of the prepositions that I would like to remove, however

Re: Regular Expression Help

2002-03-02 Thread Douglas Brown
Sleeman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, March 02, 2002 4:28 AM Subject: Re: Regular Expression Help On Sat, 2002-03-02 at 10:10, Jared Stark wrote: Hello all. I am trying to write a simple search engine, and would like to replace certain commonly used prepositions

Regular Expression Help

2002-03-01 Thread Jared Stark
Hello all I am trying to write a simple search engine, and would like to replace certain commonly used prepositions from the search string such as 'a','the','for', etc I have an array of the prepositions that I would like to remove, however the problem I have is that it is removing them when

  1   2   >