Regex help

2004-03-22 Thread Ray Bujarski
I am parsing a document that is a simple unix text document.I want to grab one line at a time so I use refind(^.*$, text, 1, true).However this doesn't grab a single line at a time, it grabs the entire blob of text?!Am I doing something wrong? Thanks, Ray [Todays Threads] [This Message]

RE: Regex help

2004-03-22 Thread Barney Boisvert
Probably easier to use listToArray(text, chr(10)) and then you can iterate over the array (each element containing one line). Cheers, barneyb -Original Message- From: Ray Bujarski [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:56 AM To: CF-Talk Subject: Regex help I

Re: Regex help

2004-03-22 Thread Nathan Strutz
this one should work: (?m)^.*$ from the cfdocs: (?m) If at the beginning of a regular _expression_, it specifies the multiline mode for the special characters ^ and $. When used with ^, the matched string can be at the start of the of entire search string or at the

RE: Regex help

2004-03-22 Thread Ray Bujarski
Thanks!I think you are right. Ray -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 11:05 AM To: CF-Talk Subject: RE: Regex help Probably easier to use listToArray(text, chr(10)) and then you can iterate over the array (each element

RE: Regex help

2004-03-22 Thread Pascal Peters
: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: maandag 22 maart 2004 20:16 To: CF-Talk Subject: Re: Regex help this one should work: (?m)^.*$ from the cfdocs: (?m) If at the beginning of a regular _expression_, it specifies the multiline mode

RE: Regex help

2004-03-22 Thread Ray Bujarski
? Thanks, Ray -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 2:10 PM To: CF-Talk Subject: RE: Regex help This will only work on MX. The thing that is going wrong is that CF is including Line feed in . (most regexp engines aren't). You are better

RE: Regex help

2004-03-22 Thread Ray Bujarski
Does anyone know the ASCII value for Tab? Thanks, Ray -Original Message- From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 2:10 PM To: CF-Talk Subject: RE: Regex help This will only work on MX. The thing that is going wrong is that CF is including Line feed

RE: Regex help

2004-03-22 Thread Michael T. Tangorre
www.asciitable.com Mike Does anyone know the ASCII value for Tab? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: Regex help

2004-03-22 Thread Barney Boisvert
Length = listLen(text, #chr(9)#); Id = listGetAt(text, length - 1, #chr(9)#); Chr(9) is the tab char, by the way. Cheers, barneyb -Original Message- From: Ray Bujarski [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 4:10 PM To: CF-Talk Subject: RE: Regex help I got

RE: Regex help

2004-03-22 Thread Ray Bujarski
Thank you all for all of your help.I am done!And it's not even 5!!! Woo-hoo. -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 4:20 PM To: CF-Talk Subject: RE: Regex help Length = listLen(text, #chr(9)#); Id = listGetAt(text, length - 1

cfhttp and regex...help please

2004-02-13 Thread Critter
oi CF-Talk,!! I am retrieving a bit of html and want to grab the value of a specific hidden input in the .filecontent input type=hidden name=userName value=Critter any ideas or suggestions as to the best way to grab the value?? ta /crit -- =-=-=-=-=-=-=-=-=-=-=-=-=-[ Help me fight to keep

RE: cfhttp and regex...help please

2004-02-13 Thread Pascal Peters
- From: Critter [mailto:[EMAIL PROTECTED] Sent: vrijdag 13 februari 2004 15:09 To: CF-Talk Subject: cfhttp and regex...help please oi CF-Talk,!! I am retrieving a bit of html and want to grab the value of a specific hidden input in the .filecontent input type=hidden name=userName

Re: cfhttp and regex...help please

2004-02-13 Thread Critter
[mailto:[EMAIL PROTECTED] Sent: vrijdag 13 februari 2004 15:09 To: CF-Talk Subject: cfhttp and regex...help please oi CF-Talk,!! I am retrieving a bit of html and want to grab the value of a specific hidden input in the .filecontent input type=hidden name=userName value=Critter any ideas

Regex Help?

2004-01-28 Thread Shawn Grover
I have routine that reads in an RTF file, and then needs to find bookmarks and insert a value for the bookmark.I'm usings CF's replace function, and it works, but takes way too long in some cases.So I thought that if I use regular expressions (with the REReplace function), I might speed things up.

Re: Regex Help?

2004-01-28 Thread Ben Doom
Actually, you're getting pretty close. Assuming the b0 bit is static \{\\b0 \{\\\*\\bkmkstart bookmark_name\} Untested, YMMV. However, this doesn't use any of the magic of regex.In other words, replace() will be faster on this than rereplace().If bookmark_name or b0 was variable, then

RE: Regex Help?

2004-01-28 Thread Shawn Grover
Solved.The regex I'm using now is \{\\b0 \{\\\*\\bkmkstart bookmark_name\} Guess I was close. Thanks though. Shawn -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 3:33 PM To: CF-Talk Subject: Regex Help? I have routine

Regex Help

2004-01-20 Thread Trevor Holm-Laursen
Hey All, I'm Looking forRegex to validate that an email has an @ symbol and that there is no invalid character's Thanks, Trevor Holm-Laursen eBusiness Developer, FCS Direct:(902)463-5953 FCS (Fundy Computer Services Ltd.) Tel 877-993-8636 Fax 902-484-5887 Email:[EMAIL PROTECTED]

RE: Regex Help

2004-01-20 Thread Bryan F. Hogan
^(\w+([\.-]?\w+)[EMAIL PROTECTED]([\.-]?\w+)*(\.\w{2,3})+)?$ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Re: Regex Help

2004-01-20 Thread Won Lee
At 11:10 AM 1/20/2004 -0400, you wrote: Hey All, I'm Looking forRegex to validate that an email has an @ symbol and that there is no invalid character's Thanks, Trevor Holm-Laursen Depending on what version of CF, I would recommend you go to cflib.org. The site is down right now though.

Re: Regex Help

2004-01-20 Thread Josh
check the exchange or cflib when it is back up. there are several tags/udfs that do this. HTH, Josh --- Exciteworks -- expert hosting for less! http://exciteworks.com reseller plans available Trevor Holm-Laursen wrote: Hey All, I'm Looking forRegex to validate that an email has an @

Re: Regex Help

2004-01-20 Thread Ubqtous
Trevor, On 1/20/2004 at 10:10, you wrote: THL I'm Looking forRegex to validate that an email has an @ symbol and THL that there is no invalid character's This has worked well for me: function iswellformedemail(email){ if(refindnocase(^['_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL

Re: Regex Help

2004-01-06 Thread Ben Doom
With regular expressions, it tends to much, much harder to say do this when a condition is false than do this when a condition is true. One option that would at least fix the problem with the scripts (though not the textareas or the PRE blocks) would be to replace [[:space:]] with a class of

RE: Regex Help

2004-01-06 Thread Ryan Edgar
. The client has strict bandwidth utilisation rules, so anything I can do to drop the page size is important. Thanks for your help. Ryan -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 January 2004 2:24 AM To: CF-Talk Subject: Re: Regex Help With regular

Re: Regex Help

2004-01-06 Thread Ben Doom
help. Ryan -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Wednesday, 7 January 2004 2:24 AM To: CF-Talk Subject: Re: Regex Help With regular expressions, it tends to much, much harder to say do this when a condition is false than do this when a condition

Re: RE: Regex Help

2004-01-06 Thread ksuh
The best way to reduce bandwidth consumption is to use http compression. - Original Message - From: Ryan Edgar [EMAIL PROTECTED] Date: Tuesday, January 6, 2004 3:05 pm Subject: RE: Regex Help Yes I'm removing whitespace to reduce page size. I inherited a CF5 project with huge amounts

Re: Regex Help

2004-01-06 Thread Jochem van Dieten
Ben Doom wrote: Might I suggest wrapping chunks of code that produce no output (ie application.cfm, onrequestend.cfm, CFQUERY's, etc) in CFSILENT tags? In addition, just before the html tag (or the ?xml .. tag), include a cfcontent with the reset attribute enabled. That will reset the

Regex Help

2004-01-05 Thread Ryan Edgar
I've written a simple Regex to remove all the whitespace from my templates: CFSET PageSource = REReplace(PageScource, [[:space:]]{2,}, , ALL) The problem I'm having is if there is _javascript_ on a page and there are inline comments, the _javascript_ won't work. alert('Hello'); // 1st line

Re: Regex Help

2004-01-05 Thread peter . tilbrook
Try looking in the Regular _expression_ Library (http://www.regxlib.com/Default.aspx) They have over 450 RegEx's so hopefully you will be able to find something. Peter Tilbrook Transitional Services - Enterprise eSolutions Centrelink (http://www.centrelink.gov.au) 2 Faulding Street Symonston ACT

regex help

2003-12-11 Thread Deanna Schneider
Hi All, I'm trying to write a regex that does the following: Looks for any instance of the string \par followed by anything but a space and replace it with \par and a space and the character that followed it. So, if I have \parThe I want \par The Here's what I'm trying, and it doesn't work:

RE: regex help

2003-12-11 Thread Pascal Peters
rereplace(mystring, (\ file://\\par)([^[:space \par)([^[:space:]]), \1 \2, all) -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: donderdag 11 december 2003 15:25 To: CF-Talk Subject: regex help Hi All, I'm trying to write a regex that does the following: Looks

Re: regex help

2003-12-11 Thread Jerry Johnson
Trying to parse RTF files, eh? I think the \ character needs to be escaped. rereplace(mystring, \\par([[::alnum::]]+), \par \1, all) Not sure, though. Jerry Johnson [EMAIL PROTECTED] 12/11/03 09:25AM Hi All, I'm trying to write a regex that does the following: Looks for any instance of the

RE: regex help

2003-12-11 Thread Pascal Peters
due to Outlook, this doesn't look right. It should be : (\\par)([^[:space:]]) -Original Message- From: Pascal Peters Sent: donderdag 11 december 2003 15:31 To: CF-Talk Subject: RE: regex help rereplace(mystring, (\ file://\\par)([^[:space \par)([^[:space:]]), \1 \2, all) [Todays Threads

Re: regex help

2003-12-11 Thread Deanna Schneider
by a space so it gets read as a \par and still shows the next word. - Original Message - From: Pascal Peters [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 8:31 AM Subject: RE: regex help rereplace(mystring, (\ file://\\par)([^[:space \par)([^[:space

Re: regex help- Solved

2003-12-11 Thread Deanna Schneider
Nevermind. I figured it out another way. -d - Original Message - From: Deanna Schneider [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 8:49 AM Subject: Re: regex help Nope. Doesn't work. What's the file:// part supposed to be doing? I'm not parsing

Re: regex help

2003-12-11 Thread Deanna Schneider
, December 11, 2003 8:41 AM Subject: RE: regex help due to Outlook, this doesn't look right. It should be : (\\par)([^[:space:]]) -Original Message- From: Pascal Peters Sent: donderdag 11 december 2003 15:31 To: CF-Talk Subject: RE: regex help rereplace(mystring, (\ file://\\par

Re: regex help

2003-12-11 Thread Ben Doom
PROTECTED] Sent: Thursday, December 11, 2003 8:41 AM Subject: RE: regex help due to Outlook, this doesn't look right. It should be : (\\par)([^[:space:]]) -Original Message- From: Pascal Peters Sent: donderdag 11 december 2003 15:31 To: CF-Talk Subject: RE: regex help rereplace

RE: regex help

2003-12-11 Thread Pascal Peters
On MX only: rereplace(mystring, (\\par)(?!\s), \1 , all) On CF5, run it twice. -Original Message- From: Deanna Schneider [mailto:[EMAIL PROTECTED] Sent: donderdag 11 december 2003 15:58 To: CF-Talk Subject: Re: regex help Hm...this works sort of, but if it's \par\parWord, I get \par

Re: Regex help

2003-11-05 Thread Ewok
trying to do is colorcodeall the cf tags that are in a code block of a message board post thanks for your help Ewok - Original Message - From: Matthew Walker To: CF-Talk Sent: Tuesday, November 04, 2003 11:51 PM Subject: RE: Regex help It rather depends what you're trying to do

RE: Regex help

2003-11-05 Thread Hagan, Ryan Mr (Contractor ACI)
CF_ColoredCode v3.2 -Original Message- From: Ewok [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 10:02 AM To: CF-Talk Subject: Re: Regex help hey mathew... that almost works! its not stopping at the end though reReplaceNoCase(string, /?cf[^]+, , all) its pretty much

Re: Regex help

2003-11-05 Thread Ewok
, November 05, 2003 10:14 AM Subject: RE: Regex help Some thoughtful soul (Dain Anderson) has already created a ColorCode script for you.I use it on my blog website and it works wonderfully.You can find it here: http://www.cfcomet.com/utilities/ http://www.cfcomet.com/utilities/ Look forhttp

Regex help

2003-11-04 Thread Ewok
hola listo! I need some regex help : ) i need to find all cf tags in some text and replace it with something else so anything that starts with cfand ends with and anything that starts with /cf and ends with this should be an easy one and im sure it is... but I left my brain on vacation i

RE: Regex help

2003-11-04 Thread Matthew Walker
It rather depends what you're trying to do but: reReplaceNoCase(string, /?cf[^]+, , all) -Original Message- From: Ewok [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:20 p.m. To: CF-Talk Subject: Regex help hola listo! I need some regex help : ) i need to find all cf

RE: Seeking RegEx help

2003-10-02 Thread Owens, Howard
~~ -Original Message- From: Gyrus [SMTP:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 8:55 PM To: CF-Talk Subject: Re: Seeking RegEx help At 17:33 01/10/2003 -0700, you wrote: I have a URL I'm grabbing ... http://ww.mysite.com/VENTURA-435672_123-1.jpg I'm

Seeking RegEx help

2003-10-01 Thread Owens, Howard
I have a URL I'm grabbing ... http://ww.mysite.com/VENTURA-435672_123-1.jpg I'm actually only interested in grabbing the 435672_123 part. REReplace(myURL, ([-])([0-9]{6,}[_][0-9]{3})([-]), \2, ONE) But all that does is drop the dashes from around the number I want ... how do I grab out just

Re: Seeking RegEx help

2003-10-01 Thread Gyrus
At 17:33 01/10/2003 -0700, you wrote: I have a URL I'm grabbing ... http://ww.mysite.com/VENTURA-435672_123-1.jpg I'm actually only interested in grabbing the 435672_123 part. REReplace(myURL, ([-])([0-9]{6,}[_][0-9]{3})([-]), \2, ONE) But all that does is drop the dashes from around the

Re: REgEx Help - Ben

2003-09-27 Thread Ben Doom
pe this helps. Steve -Original Message- From: kelly [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:51 PM To: CF-Talk Subject: Re: REgEx Help - Ben I apologize if this is a dupe, my mail is acting odd today. Ben I'm using CF MX and here is an sample of text I actually

Re: REgEx Help - Ben

2003-09-26 Thread kelly
I apologize if this is a dupe, my mail is acting odd today.Ben I'm using CF MX and here is an sample of text I actually will be using.125072 A HREF="">For each line above I need to remove A HREF="" and /a but leave what's in between (CIMG0121.JPG) and what comes before a HREFSo the end result

RE: REgEx Help - Ben

2003-09-26 Thread DURETTE, STEVEN J (AIT)
e(myNewPhrase, '[][/][aA][]', '', All)This returns 125072 CIMG0131.JPG~ Hope this helps. Steve -Original Message-From: kelly [mailto:[EMAIL PROTECTED]Sent: Friday, September 26, 2003 4:51 PMTo: CF-TalkSubject: Re: REgEx Help - BenI apologize if this is a dupe, my mail is acting odd today.Ben I'

RE: REgEx Help - Ben

2003-09-26 Thread Knight, Matt
I'm not sure of the syntax, but it would seem you want to get the subStringbetween the first and the second of the string. Matt Knight –º w: 972 361 9943 –º m: 214 213 4016 _From: kelly [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 3:51 PMTo: CF-TalkI apologize if this is a

RE: Regex help

2003-09-12 Thread Joshua Miller
] * -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 8:25 PM To: CF-Talk Subject: Re: Regex help but not in CAT or CATalog or CATastrophe, etc. Neither tattoo

Regex help

2003-09-11 Thread Teel, C. Doug
Regex help please. I've been busting my brain on this one. Here's what I'm trying to do, I could have string like: ...a cat hat prate at bird... And I want to match all the at strings except the at string in the cat. I tried a bunch of stuff like: (^C)?at but that didn't work

RE: Regex help

2003-09-11 Thread J E VanOver
You're close ... [^cC]at should match any single character that is not c (or C) followed by at -Original Message- From: Teel, C. Doug [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 10:33 AM To: CF-Talk Subject: Regex help Regex help please. I've been busting my brain

Re: Regex help

2003-09-11 Thread Claude Schneegans
Try [^c]at It will pick up the c also, so just add one if you need the exact position. P.S. I juste tested it on the REwizard: See http://www.contentbox.com/claude/REwizard/index.cfm?p=hf ~| Archives:

Re: Regex help

2003-09-11 Thread Jerry Johnson
Hopefully Ben can tell me why this appears to work. cfset str=gat...a chat cat hat prate at bird... cfset f=reReplaceNoCase(str,(^| )([^ ]*)([^C ])at,\1\2\3AT,ALL) cfoutput#f#/cfoutput Jerry Johnson [EMAIL PROTECTED] 09/11/03 01:32PM Regex help please. I've been busting my brain

RE: Regex help

2003-09-11 Thread Teel, C. Doug
Thanks JE for the response. One note: This will also match something like rat, but I only want the at matched in rat. -Original Message- From: J E VanOver [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 12:58 PM To: CF-Talk Subject: RE: Regex help You're close ... [^cC

Re: Regex help

2003-09-11 Thread Claude Schneegans
but I only want the at matched in rat. As I said: just add one to the position. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe:

RE: Regex help

2003-09-11 Thread Joshua Miller
] * -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:01 PM To: CF-Talk Subject: Re: Regex help but I only want the at matched in rat. As I said: just add one to the position

RE: Regex help

2003-09-11 Thread Ben Doom
PROTECTED] : Sent: Thursday, September 11, 2003 2:29 PM : To: CF-Talk : Subject: Re: Regex help : : : Hopefully Ben can tell me why this appears to work. : : cfset str=gat...a chat cat hat prate at bird... : : cfset f=reReplaceNoCase(str,(^| )([^ ]*)([^C ])at,\1\2\3AT,ALL) : cfoutput#f#/cfoutput

RE: Regex help

2003-09-11 Thread J E VanOver
[^cC](at) (in CF -- other RE engines would be [^cC]\(at\) -Original Message- From: Teel, C. Doug [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:42 AM To: CF-Talk Subject: RE: Regex help Thanks JE for the response. One note: This will also match something like rat

RE: Regex help

2003-09-11 Thread Ben Doom
That also won't match AAT or TAT -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Joshua Miller [mailto:[EMAIL PROTECTED] : Sent: Thursday, September 11, 2003 3:48 PM : To: CF-Talk : Subject: RE: Regex help : : : [^cat

RE: Regex help

2003-09-11 Thread Ben Doom
[mailto:[EMAIL PROTECTED] : Sent: Thursday, September 11, 2003 3:53 PM : To: CF-Talk : Subject: RE: Regex help : : : [^cC](at) (in CF -- other RE engines would be [^cC]\(at\) : : -Original Message- : From: Teel, C. Doug [mailto:[EMAIL PROTECTED] : Sent: Thursday, September 11, 2003 11:42 AM

RE: Regex help

2003-09-11 Thread Jerry Johnson
Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Jerry Johnson [mailto:[EMAIL PROTECTED] : Sent: Thursday, September 11, 2003 2:29 PM : To: CF-Talk : Subject: Re: Regex help : : : Hopefully Ben can tell me why this appears to work. : : cfset str=gat...a chat

RE: Regex help

2003-09-11 Thread Ben Doom
capitalizes all the ats except in cat. : : -- Ben Doom : Programmer General Lackey : Moonbow Software, Inc : : : -Original Message- : : From: Jerry Johnson [mailto:[EMAIL PROTECTED] : : Sent: Thursday, September 11, 2003 2:29 PM : : To: CF-Talk : : Subject: Re: Regex help

Re: Regex help

2003-09-11 Thread Claude Schneegans
but not in CAT or CATalog or CATastrophe, etc. Neither tattoo, in [^cat] any of c, a or t may not precede at. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription:

RegEx help

2003-08-19 Thread Bosky, Dave
I was looking for a RegEx to strip all non-alphanumeric characters. cfset string = fete%20%20it89 cfset myVar = replacenocase(string,RegEx,,All) Thanks, Dave HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the

RE: RegEx help

2003-08-19 Thread Tim Blair
This should do the job: cfset myVar = rereplacenocase(string, [^[:alnum:]], , ALL) Tim. --- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call

RE: RegEx help

2003-08-19 Thread Ben Doom
rereplacenocase(string, [^a-z0-9]+, , all); -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED] : Sent: Tuesday, August 19, 2003 2:10 PM : To: CF-Talk : Subject: RegEx help : : : I was looking

RE: RE: RegEx help

2003-08-19 Thread s. isaac dealey
, Inc : -Original Message- : From: Bosky, Dave [mailto:[EMAIL PROTECTED] : Sent: Tuesday, August 19, 2003 2:10 PM : To: CF-Talk : Subject: RegEx help : : : I was looking for a RegEx to strip all non-alphanumeric characters. : : cfset string = fete%20%20it89 : cfset myVar = replacenocase

RE: RE: RegEx help

2003-08-19 Thread Ben Doom
Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: s. isaac dealey [mailto:[EMAIL PROTECTED] : Sent: Tuesday, August 19, 2003 3:11 PM : To: CF-Talk : Subject: RE: RE: RegEx help : : : personally I prefer : : rereplace(string,[^[:alnum:]],,all) : : in either case

RE: RE: RegEx help

2003-08-19 Thread Barney Boisvert
, 2003 12:11 PM To: CF-Talk Subject: RE: RE: RegEx help personally I prefer rereplace(string,[^[:alnum:]],,all) in either case the + is extraneous ben: does that improve performance you think? Original Message --- rereplacenocase(string, [^a-z0-9]+, , all); -- Ben

RE: Regex help

2003-08-16 Thread Ben Doom
://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21 -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Thanh Nguyen [mailto:[EMAIL PROTECTED] : Sent: Thursday, August 14, 2003 8:15 PM : To: CF-Talk : Subject: Regex help : : : Can someone

Regex help

2003-08-16 Thread Mike Mertsock
Try this out: Assuming for example that your company name field is form.company_name: cfset commonWords = inc\.|corp\.|llc\.|ltd\. cfset form.company_name = REReplaceNoCase( form.company_name, \b(#commonWords#)\b, , all ) / The regular expression uses this type of syntax:

Regex help

2003-08-15 Thread Thanh Nguyen
Can someone assist me in writing a regex to remove all common words such as inc., corp., llc., ltd. from a company name field. Thanks Thanh Nguyen ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription:

regex help

2003-07-30 Thread Michael T. Tangorre
Can someone assist me in writing a regex to return a string that has only spaces, numbers and letters reminaing? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

Re: regex help

2003-07-30 Thread Jerry Johnson
Certainly. What version of CF? What is the max length of the string? Do you really mean the space character, numbers and letters? No punctuation? No dashes? No decimal place? No -/+ sign? If CF 5 and less than 2 characters long... cfset newStr=reReplaceNoCase(str,[^[:alnum:] ],,ALL) or

Re: regex help

2003-07-30 Thread Michael T. Tangorre
What version of CF? 5 What is the max length of the string? unlimited so I am looping over the string in chunks (15,000) Do you really mean the space character, numbers and letters? No punctuation? No dashes? No decimal place? No -/+ sign? yup... I am just after certain pieces of text which

RE: regex help

2003-07-30 Thread Ben Doom
rereplacenocase(string, [^a-z 0-9], , all); -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] : Sent: Wednesday, July 30, 2003 2:04 PM : To: CF-Talk : Subject: regex help : : : Can someone

Re: Cfhttp (now regex help needed...)

2003-07-14 Thread Ryan Mitchell
Ok, cool i've got this aspect working, thanks dave... Now... I am doing a cfhttp on a php page and need to return the php sid, so basically I need to search through the string and find sid=. where the Represent a 32 char alphanumeric string... I've tried

RE: Cfhttp (now regex help needed...)

2003-07-14 Thread Kola Oyedeji
July 2003 15:50 To: CF-Talk Subject: Re: Cfhttp (now regex help needed...) Ok, cool i've got this aspect working, thanks dave... Now... I am doing a cfhttp on a php page and need to return the php sid, so basically I need to search through the string and find sid=. where

RE: Cfhttp (now regex help needed...)

2003-07-14 Thread Ben Doom
: Subject: Re: Cfhttp (now regex help needed...) : : : Ok, cool i've got this aspect working, thanks dave... : : Now... I am doing a cfhttp on a php page and need to return the : php sid, so : basically I need to search through the string and find : : sid=. where the Represent a 32 char

Re: Cfhttp (now regex help needed...)

2003-07-14 Thread Ryan Mitchell
Message- : From: Ryan Mitchell [mailto:[EMAIL PROTECTED] : Sent: Monday, July 14, 2003 10:50 AM : To: CF-Talk : Subject: Re: Cfhttp (now regex help needed...) : : : Ok, cool i've got this aspect working, thanks dave... : : Now... I am doing a cfhttp on a php page and need to return

quick regex help

2003-06-25 Thread Ryan Roskilly
Here is a string I need to change. cfset QueryString = #REReplaceNoCase(#QueryString#,Oby=OrderIDStype=Asc,)# I need to replace Oby=OrderIDStype=Asc where OrderID could be anything so I need a wildcard in there. And same with with Stype which could be Asc or Desc so I also need a wildcard in

RE: quick regex help

2003-06-25 Thread Ben Doom
: -Original Message- : From: Ryan Roskilly [mailto:[EMAIL PROTECTED] : Sent: Wednesday, June 25, 2003 3:57 PM : To: CF-Talk : Subject: quick regex help : : : Here is a string I need to change. : : cfset QueryString = : #REReplaceNoCase(#QueryString#,Oby=OrderIDStype=Asc,)# : : I need to replace Oby

Re: quick regex help

2003-06-25 Thread Jerry Johnson
First, you can just reference the variable queryString as the first parameter ot rereplacenocase (no #), and the value returned by rereplacenocase cfset queryString=REReplaceNoCase(queryString,regex,newvalue) Second, what do you want to replace these strings with? NULL (delete them?) Third do

RE: quick regex help

2003-06-25 Thread Ryan Roskilly
thanks this worked just fine cfset queryString= REReplaceNoCase(queryString,Oby=[^]*Stype=(Asc|Desc),,ALL) -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 4:16 PM To: CF-Talk Subject: Re: quick regex help First, you can just reference

regex help

2003-06-16 Thread Michael T. Tangorre
I am trying to determine if an integer begins with 332. The number varies in length from 4 to 9 digits in length. If 332 begins the number I would like to return the number minus the 332. I am still trying to learn regex so an explanation with any ideas would be very helpful. Here is what I am

Re: regex help

2003-06-16 Thread Michael T. Tangorre
in1 should be testNum, I typed it in wrong... - Original Message - From: Michael T. Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:44 PM Subject: regex help I am trying to determine if an integer begins with 332. The number varies in length

RE: regex help

2003-06-16 Thread Marlon Moyer
Subject: regex help I am trying to determine if an integer begins with 332. The number varies in length from 4 to 9 digits in length. If 332 begins the number I would like to return the number minus the 332. I am still trying to learn regex so an explanation with any ideas would be very helpful

RE: regex help

2003-06-16 Thread Marlon Moyer
: regex help in1 should be testNum, I typed it in wrong... - Original Message - From: Michael T. Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:44 PM Subject: regex help I am trying to determine if an integer begins with 332. The number varies

Re: regex help

2003-06-16 Thread Michael T. Tangorre
Thank you for the help, explanation and link. I will check that out for sure. Mike - Original Message - From: Marlon Moyer [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:55 PM Subject: RE: regex help Michael, I also use this program to help test

RE: regex help

2003-06-16 Thread Greg McDaniel
Too bad it does not install on W2K. :`( -Original Message- From: Marlon Moyer [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:55 PM To: CF-Talk Subject: RE: regex help Michael, I also use this program to help test regex's. It's quicker than using cf most of the time. http

RE: regex help

2003-06-16 Thread Marlon Moyer
I've had it running on win2k before. You have to run it in the win95 compatibility mode. Marlon -Original Message- From: Greg McDaniel [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 1:10 PM To: CF-Talk Subject: RE: regex help Too bad it does not install on W2K

Re: regex help

2003-06-16 Thread Michael T. Tangorre
I just noticed that as well. :-( - Original Message - From: Greg McDaniel [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 16, 2003 2:10 PM Subject: RE: regex help Too bad it does not install on W2K. :`( -Original Message- From: Marlon Moyer [mailto

RE: regex help

2003-06-16 Thread Ben Doom
[mailto:[EMAIL PROTECTED] : Sent: Monday, June 16, 2003 1:44 PM : To: CF-Talk : Subject: regex help : : : I am trying to determine if an integer begins with 332. : : The number varies in length from 4 to 9 digits in length. If 332 : begins the number I would like to return the number minus the 332

Regex Help

2003-06-05 Thread Michael Tangorre
Good Morning. A day or so ao I got some help with a regular expression and when I wrote a sample input string to match against it worked fine, howvever I failed to realize I have to HTMLCodeFormat the results from the http post in order to get a string to use. The Regex does not seem to work

RE: Regex Help

2003-06-05 Thread Adrian Lynch
Subject: Regex Help Good Morning. A day or so ao I got some help with a regular expression and when I wrote a sample input string to match against it worked fine, howvever I failed to realize I have to HTMLCodeFormat the results from the http post in order to get a string to use. The Regex does

Re: Regex Help

2003-06-05 Thread Matthew Walker
, Matthew Walker Electric Sheep Web http://www.electricsheep.co.nz/ - Original Message - From: Michael Tangorre [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, June 06, 2003 12:02 AM Subject: Regex Help Good Morning. A day or so ao I got some help with a regular expression

Re: Regex Help

2003-06-05 Thread Michael Tangorre
] Sent: Thursday, June 05, 2003 8:11 AM Subject: RE: Regex Help I'm not sure if this will help, but try nesting your functions the other way so the RegEx gets applied before the HTMLCodeFormat, or if that doesn't work, do it the other way :OP Ade -Original Message- From: Michael

RE: Regex Help

2003-06-05 Thread Adrian Lynch
Assuming the RegEx works, at what point have you been using HTMLCodeFormat()? -Original Message- From: Michael Tangorre [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 13:13 To: CF-Talk Subject: Re: Regex Help sorry that the code got all scrunched together.. let me try posting the code

Re: Regex Help - SOLVED

2003-06-05 Thread Michael Tangorre
: Regex Help ^ is start of string, $ is end of string, so it looks like you've got these aroung the wrong way. Secondly, you want everything between but not including the %--- ---% right? So put the parentheses *inside* How about this: result = REreplace(cfhttp.fileContent

<    1   2   3   4   5   6   7   >