Re: regexp help

2006-09-27 Thread Claude Schneegans
>>I think it will also remove the | character. No: the | is the OR operator. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~

Re: regexp help

2006-09-27 Thread Claude Schneegans
>>what's the difference between your solutions? Technically, they do the same. Probabilly one is a couple of microseconds more efficient, but I can't even say which one. The range set [_12] is probabilly more elegant. The difference would be that with a range, you can only OR between characters

Re: regexp help

2006-09-27 Thread Jerry Johnson
Yeah, I read it as [1|2|_] within square brackets. My eyes playing tricks on my mind. On 9/27/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > Claude's (and mine) will work just fine. It won't replace the pipe since it > isn't escaped. It will also replace 1 or more instances of any of the 3 > ch

RE: regexp help

2006-09-27 Thread Crow T Robot
Thanks Ben, Jerry, Claude, Rob. > -Original Message- > From: Ben Nadel [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 27, 2006 3:19 PM > To: CF-Talk > Subject: RE: regexp help > Importance: High > > Ray, > > I don't think there is any rea

Re: regexp help

2006-09-27 Thread Teddy Payne
I meant to say: This looks for any combinations of 1 or more combinations of _,1 or 2. It is a greedy notation. instead of: This looks for any combinations of 1 or more combinations of _,1 or 3. It is a greedy notation. On 9/27/06, Teddy Payne <[EMAIL PROTECTED]> wrote: > > Ray, > The notations

Re: regexp help

2006-09-27 Thread Teddy Payne
Ray, The notations are pretty similar. REReplace( strTest, "[_12]+", "", "ALL" ) This looks for any combinations of 1 or more combinations of _,1 or 3. It is a greedy notation. ReReplace (MyString, "_|1|2", "", "all") This is more logical oriented meaning that _ or 1 or 2 exists, then remove it.

RE: regexp help

2006-09-27 Thread Bobby Hartsfield
lk Subject: Re: regexp help I don;t know that Claude's will work quite right. I think it will also remove the | character. The main difference is that Ben used the +, which says to replace 1 or more adjacent occurances with null. This should be marginally faster than not using the +, since

Re: regexp help

2006-09-27 Thread Jerry Johnson
I don;t know that Claude's will work quite right. I think it will also remove the | character. The main difference is that Ben used the +, which says to replace 1 or more adjacent occurances with null. This should be marginally faster than not using the +, since is does them in groups. But you wil

RE: regexp help

2006-09-27 Thread Ben Nadel
using [] would be a nightmare. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 3:07 PM To: CF-Talk Subject: Re: regexp help No practical

RE: regexp help

2006-09-27 Thread Ben Nadel
er of personal taste I suppose. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:54 PM To: CF-Talk Subject: RE: regexp help Ben, Claude, just so I know, what's th

RE: regexp help

2006-09-27 Thread Bobby Hartsfield
rereplace(str, '1|2|_', '', 'all') -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:16 PM To: CF-Talk Subject: regexp help Can some tell me what the regexp would be to remove all instances of _ or 1 or 2 (that's underscore OR one OR

Re: regexp help

2006-09-27 Thread Rob Wilkerson
No practical difference. Ben took the shortcut of using a character set rather than explicitly stating the "OR" ( | ) condition. To be clear, though, either of these will remove any _, 1 or 2 from your value. So "foo1bar" will become "foobar". If the chars to be removed must be at the end of th

RE: regexp help

2006-09-27 Thread Ray Champagne
Ben, Claude, just so I know, what's the difference between your solutions? Is it merely more than one way to skin a cat, or is one better than another? > > REreplace (MyString, "_|1|2", "", "all") ~| Introducing the Fusion Au

Re: regexp help

2006-09-27 Thread Jerry Johnson
rereplace(str, "[12_]","","ALL") ? On 9/27/06, Ray Champagne <[EMAIL PROTECTED]> wrote: > Can some tell me what the regexp would be to remove all instances of _ or 1 > or 2 (that's underscore OR one OR two) from a string? > > > > Like ffmpti_2 would become ffmpti or carfeed1 would become carfeed.

Re: regexp help

2006-09-27 Thread Claude Schneegans
>>what the regexp would be to remove all instances of _ or 1 or 2 (that's underscore OR one OR two) from a string? REreplace (MyString, "_|1|2", "", "all") -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Pleas

RE: regexp help

2006-09-27 Thread Ben Nadel
.. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:16 PM To: CF-Talk Subject: regexp help Can some tell me what the regexp would be to r

Re: regexp help

2004-08-31 Thread chris porter
are using with the USD codes so I left it like this: [A-Z]{2,3} > > I just hope that I have helped somewhere. > > Ian > > > - Original Message - > From: chris porter <[EMAIL PROTECTED]> > Date: Mon, 30 Aug 2004 21:40:53 -0400 > Subject: Re: reg

Re: regexp help

2004-08-30 Thread Ian Sheridan
do not know all the codes that you are using with the USD codes so I left it like this: [A-Z]{2,3} I just hope that I have helped somewhere. Ian - Original Message - From: chris porter <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 21:40:53 -0400 Subject: Re: regexp help To: CF-Talk <

Re: regexp help

2004-08-30 Thread chris porter
I want to be 100% sure of > what I'm getting and how. If there's a problem, then I want to know exactly > what's up. > >   _   > > > > Why don;t you just go through the text as a list with CR as the > delimiter? This way you can have much more fo

Re: regexp help

2004-08-30 Thread chris porter
t;  _   > >From: chris porter [mailto:[EMAIL PROTECTED] >Sent: Monday, August 30, 2004 4:41 PM >To: CF-Talk >Subject: Re: regexp help > > >and one last time > >DATA: > >Product Name >Product NumberQty  Est. Ship Date You

Re: regexp help

2004-08-30 Thread Ian Sheridan
razy here but I pretty sure this would work. Any future changes on what each feild would hold would be easy to change. (beware I did not test it) Ian - Original Message - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 18:23:04 -0400 Subject: RE: regexp help To: CF-T

RE: regexp help

2004-08-30 Thread Michael Dinowitz
ssage - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 16:49:48 -0400 Subject: RE: regexp help To: CF-Talk <[EMAIL PROTECTED]> Really fast (Using the multi-line move of CFMX) ^([^#chr(13)#]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]{2 }/[0-9]{2

Re: regexp help

2004-08-30 Thread Ian Sheridan
Why don;t you just go through the text as a list with CR as the delimiter? This way you can have much more focused regular expressions. Just a thought, Ian - Original Message - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 16:49:48 -0400 Subject: RE: regexp h

RE: regexp help

2004-08-30 Thread Michael Dinowitz
Subject: Re: regexp help and one last time DATA: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [dashed go here all the way across PITA email parser] description of some item1 0344437 1   03/12/2004

RE: regexp help

2004-08-30 Thread Michael Dinowitz
OK, lets do the pattern dance. The product name will always be on it's own line and followed by the product info? What is the number format (if any). What can it contain (spaces, dashes, etc.). Is the quantity always there? Ship date always there? in any specific format? Price always there? Always

Re: regexp help

2004-08-30 Thread chris porter
and one last time DATA: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [dashed go here all the way across PITA email parser] description of some item1 0344437 1   03/12/2004 USD    335.75 another des

Re: regexp help

2004-08-30 Thread chris porter
Hmm got bit by that lines problem... good advanced warning that that will happen ;) here is the text: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donation

RE: regexp help

2004-08-30 Thread Michael Dinowitz
Remember that the list removes all text that comes after a line of dashes. You may want to repost that text you want to parse. On the other hand, your in luck as I just finished another email parser to grab products out of an email for entry into a DB (for mothernature.com). I should be able to hel

RE: RegExp Help

2003-03-28 Thread David Collie (itndac)
Hi Jerry, was out the office yesterday [coder sees the light of day shock] and just wanted to say cheers for the help after my last post Good pointers in what I am needing to do in your code samples thanks :-) ~~

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
And this is a simple replace and regex combo. (This replace the end tag with a (hopefully) unused character, which should be much easier to find than the endtag string) ","ø","ALL")> #tstr# #tstr2# Jerry ~| Archives:

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
tags and loop over that, removing them as I find them. HTH -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -Original Message- : From: David Collie (itndac) [mailto:[EMAIL PROTECTED] : Sent: Wednesday, March 26, 2003 11:17 AM : To: CF-Talk : Subject: RE: RegExp Hel

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
No CFMX upgrade for a while unfortunately, will look into the refind (if I get time!) Cheers to Neil, Jerry and Ben, much appreciated -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 16:30 To: CF-Talk Subject: RE: RegExp Help The easy answer (for me) is

RE: RegExp Help

2003-03-26 Thread Ben Doom
H -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -Original Message- : From: David Collie (itndac) [mailto:[EMAIL PROTECTED] : Sent: Wednesday, March 26, 2003 11:17 AM : To: CF-Talk : Subject: RE: RegExp Help : : : Hi all... : : All right guys I actually do wa

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
ssage- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:29 To: CF-Talk Subject: RE: RegExp Help Just be aware that if you have a page like Between the waves and the shore there's a boat here. You'll get Between here. not Between and the shore here. Because that r

RE: RegExp Help

2003-03-26 Thread Ben Doom
March 26, 2003 10:34 AM : To: CF-Talk : Subject: RE: RegExp Help : : : FYI: The purpose was to rip out the HTML buttons of a report when : converting to PDF : : Neil's RegExp did what I needed as I could guarantee that there would : only be one set on the page that surrounded the HTML code

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
L PROTECTED] Sent: 26 March 2003 15:01 To: CF-Talk Subject: RE: RegExp Help .* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out > ...

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
way Cheers for your help everyone PS anyone got any good resouces for learning RegExp? -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:21 To: CF-Talk Subject: RE: RegExp Help Can the tags contain other tags? Will there ever be more than one set in the

RE: RegExp Help

2003-03-26 Thread Ben Doom
king wierd questions about it. :-) -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -Original Message- : From: David Collie (itndac) [mailto:[EMAIL PROTECTED] : Sent: Wednesday, March 26, 2003 10:25 AM : To: CF-Talk : Subject: RE: RegExp Help : : : Hi Neil, Thanks fo

RE: RegExp Help

2003-03-26 Thread Neil Middleton
thats alright, thats about the only regexp I know..;-) Neil > Hi Neil, Thanks for getting back to me... > > Your RegExp has done the trick well under it and really need to > brush up on my RegExp skills but am always put off by the > horrible ones > you see getting used! > > Much apprec

RE: RegExp Help

2003-03-26 Thread Ben Doom
sday, March 26, 2003 10:03 AM : To: CF-Talk : Subject: Re: RegExp Help : : : What version of CF? : How long can the string be you are stripping it from? : By strip out, do you want the string returned without these tags : in it? (As if you replaced them with "") : Are the these tags ever nes

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
:[EMAIL PROTECTED] Sent: 26 March 2003 15:01 To: CF-Talk Subject: RE: RegExp Help .* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out >

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
I am absolutely hopeless with RegExp and I know there are experts on the list -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:03 To: CF-Talk Subject: Re: RegExp Help What version of CF? How long can the string be you are stripping it from? By strip o

Re: RegExp Help

2003-03-26 Thread Jerry Johnson
What version of CF? How long can the string be you are stripping it from? By strip out, do you want the string returned without these tags in it? (As if you replaced them with "") Are the these tags ever nested? Jerry Johnson >>> [EMAIL PROTECTED] 03/26/03 10:03AM >>> Can anyone help me with th

RE: RegExp Help

2003-03-26 Thread Neil Middleton
.* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out > ... > > > I would need it to strip out all the content and the tags > themselves as > well... ~

Re: RegExp Help

2002-05-24 Thread Matthew Walker
ssage - From: "Gyrus" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 2:40 AM Subject: Re: RegExp Help > - Original Message - > From: "Matthew Walker" <[EMAIL PROTECTED]> > > ([^""]*)&qu

Re: RegExp Help

2002-05-24 Thread Gyrus
- Original Message - From: "Matthew Walker" <[EMAIL PROTECTED]> ", "", "all")> This will only replace one space per anchor. You need to run it repeatedly to get them all. - I ended up with a similar solution in replying to the original poster - with a conditi

RE: RegExp Help

2002-05-23 Thread Matthew Walker
Nobody seems to have replied, so here goes You don't want to use (.*) as regexes are greedy and will try to match the biggest string possible. If you have to s in a block, this regex will match from the start of one to the end of the other. ", "", "all")> This will only replace one space p

Re: RegExp Help

2002-05-23 Thread Gyrus
- Original Message - From: "Wallick, Mike" <[EMAIL PROTECTED]> Hey all. I'm trying to cook up a regexp to search a block of text for links. What I'm looking for is something like: I want to read the block of text and replace spaces with %20 so links won't break.

RE: RegExp Help

2002-03-20 Thread Wallick, Mike
You rock! That does exactly what I need it to do. Thanks Jerry Mike -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 1:13 PM To: CF-Talk Subject: Re: RegExp Help ]*>(.*).*","\1")> (or something like that) Jerr

Re: RegExp Help

2002-03-20 Thread Jerry Johnson
]*>(.*).*","\1")> (or something like that) Jerry Johnson >>> [EMAIL PROTECTED] 03/20/02 01:10PM >>> Anyone Have a RegExp to get all content between the tags? I found a UDF that parses out the , but I'm trying to modify it to parse out the instead, but I'm not having much luck. Any help would

Re: RegExp help needed

2002-01-08 Thread Don Vawter
Had to write it to make sure regex worked lol - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 12:18 PM Subject: RE: RegExp help needed > Holy cow, Don - I was hoping for s

Re: RegExp help needed

2002-01-08 Thread Sam Farmer
Don't forget to cflock the call to cffile! :) Sam - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 2:18 PM Subject: RE: RegExp help needed > Holy cow, Don - I was ho

RE: RegExp help needed

2002-01-08 Thread Jeff Beer
Holy cow, Don - I was hoping for some tips - you wrote the whole darn thingy! I'll test it right away - thanks mucho for the assist!! Regards, Jeff -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 1:29 PM To: CF-Talk Subject: Re: R

Re: RegExp help needed

2002-01-08 Thread Don Vawter
Try this: startpos=1; stTime=refindnocase("DateTime\:[ ]*(\{[^\}]*\})",mf,startpos,"yes"); while(startpos LT len(mf) and startpos GT 0 and stTime.pos[1] GT 0){ if(arraylen(stTime.pos) GT 1) timeval=mid(mf,stTime.pos[2],stTime.len[2]); else timeval="";

RE: Regexp help

2001-07-17 Thread Sicular, Alexander
, cannot be represented as strings. ? -Original Message- From: Marlon Moyer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 7:24 PM To: CF-Talk Subject: RE: Regexp help refindnocase("(function)(.)([[:graph::]]*)\(",thistag.generatedcontent,1,tru e)> Marlon -Ori

Re: Regexp help

2001-07-17 Thread Dick Applebaum
Oops, wrap problems... try: Assuming the test containing the source is a variable named text. the following will return a comma-delimited list of function names HTH Dick At 3:59 PM -0500 7/17/01, Bryan LaPlante wrote: >I need some help from one of the RegExp guru's. I am trying to get a

RE: Regexp help

2001-07-17 Thread Marlon Moyer
refindnocase("(function)(.)([[:graph::]]*)\(",thistag.generatedcontent,1,tru e)> Marlon -Original Message- From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 4:00 PM To: CF-Talk Subject: Regexp help I need some help from one of the RegExp guru's. I am trying t

Re: Regexp help

2001-07-17 Thread Dick Applebaum
Assuming the test containing the source is a variable named text. the following will return a comma-delimited list of function names HTH Dick At 3:59 PM -0500 7/17/01, Bryan LaPlante wrote: >I need some help from one of the RegExp guru's. I am trying to get a list of >function names from

RE: Regexp help

2001-07-17 Thread Raymond Camden
Are you talking about UDFs? I have a custom tag that will scan a UDF library for UDFs and either generate HTML docs or return a structure. If you want the code, let me know. It's going to be downloadable once CFLib.org gets relaunched this week, but I can send you a copy now if you would like. ==