RE: Something about Regular Expressions that I have never understood

2010-07-16 Thread Brook Davies
Pete/Claude, Thanks guys, thats awesome!!! Brook -Original Message- From: Claude Schnéegans [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans >But what I have never understood how to do is find a match and then a second match and extract or replace what's inbetween. I had the same problem, s

Re: Something about Regular Expressions that I have never understood

2010-07-16 Thread Claude Schnéegans
>>But what I have never understood how to do is find a match and then a second match and extract or replace what's inbetween. I had the same problem, so I wrote a custom tag to do exactly this easyly: See http://www.cftagstore.com/tags/cfreextract.cfm ~~~

Re: Something about Regular Expressions that I have never understood

2010-07-16 Thread Pete Freitag
On Fri, Jul 16, 2010 at 1:33 PM, Brook Davies wrote: > How would I extract or replace via a regular expression the first value in > single quotes (date) inside the parenthesis. Is it possible to do it in one > line? Via a back reference or some such animal? > > format('date','12/12/2010') Hi Bro

Something about Regular Expressions that I have never understood

2010-07-16 Thread Brook Davies
So I know how to throw together a regular expression to find an occurrence of a string/match. But what I have never understood how to do is find a match and then a second match and extract or replace what's inbetween. I've always had to resort to saving the first index I find and then running a se