Re: Regex question

2013-07-17 Thread Cameron Childress
On Wed, Jul 17, 2013 at 11:15 AM, Matthew Allen wrote: > Is it possible to change the reference-link tag from a reference link tag > to a superscript as so > 1, basically getting the value of the id attribute of the > reference link tag and creating a superscript tag with the value. I'll let

Re: RegEx Question

2011-05-20 Thread Peter Boughton
Not only can you do it with jQuery, you /should/ do it with jQuery (or equiv). Regex is not built for HTML parsing, and there are many reasons why it wont work correctly when you try. Rather than worry about numerous edge cases, use a tool designed for the job from the start. ~~~

RE: RegEx Question

2011-05-19 Thread Duane Boudreau
Thanks that's brilliant! -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Wednesday, May 18, 2011 5:42 AM To: cf-talk Subject: Re: RegEx Question Here is a very blunt regex that should match the opening tag (does not check for the lack of t

Re: RegEx Question

2011-05-18 Thread Dominic Watson
Here is a very blunt regex that should match the opening tag (does not check for the lack of target="_blank": Here's a great site: http://gskinner.com/RegExr/ On 18 May 2011 02:30, Lists wrote: > > You could actually do this with jquery quite easily should you want to do it > client side.

Re: RegEx Question

2011-05-17 Thread Lists
You could actually do this with jquery quite easily should you want to do it client side. $('a[href*=pdf]').click(function(){ window.open($(this).href); }) On May 17, 2011, at 5:35 PM, Duane Boudreau wrote: > > Hi All, > > First time posting in a very long time. > > I'm stuck on a RegEx

Re: Regex Question

2011-04-28 Thread Rick Colman
would it ignore the parens and space? will try shortly. TNX! On 4/28/2011 1:17 PM, Andy Matthews wrote: > That seems like it might do the trick: > > http://regexr.com?2tl99 > >> Could be as simple as \w{3} >> >> Would that do it (searching for 3 consecutive word characters)? >> >> -- >> Charlie

Re: Regex Question

2011-04-28 Thread Andy Matthews
That seems like it might do the trick: http://regexr.com?2tl99 > Could be as simple as \w{3} > > Would that do it (searching for 3 consecutive word characters)? > > -- > Charlie Griefer > http://charlie.griefer.com > > I have failed as much as I have succeeded. But I love my life. I love >

RE: Regex Question

2011-04-28 Thread Jenny Gavin-Wear
Perhaps using list functions? -Original Message- From: Rick Colman [mailto:rcol...@cox.net] Sent: 28 April 2011 18:10 To: cf-talk Subject: Regex Question input looks like: (A XXX)(B YYY)(C ZZZ) I need to pull out: XXXYYYZZZ ... Can somebody help? TNX. Rick. ~~~

Re: Regex Question

2011-04-28 Thread Charlie Griefer
Could be as simple as \w{3} Would that do it (searching for 3 consecutive word characters)? -- Charlie Griefer http://charlie.griefer.com I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. On Thursday, April 28, 2011 at 10:10 AM,

RE: Regex Question

2010-12-03 Thread Jason Fisher
--- From: "Robert Harrison" Sent: Friday, December 03, 2010 1:03 PM To: "cf-talk" Subject: RE: Regex Question > listGetAt(cgi.path_info, 2, "/") Great. That will work for what I want. I want to be able to pass the cgi.path_info to a CFC and pass a digit s

RE: Regex Question

2010-12-03 Thread Robert Harrison
> listGetAt(cgi.path_info, 2, "/") Great. That will work for what I want. I want to be able to pass the cgi.path_info to a CFC and pass a digit so the CFC could extract the part of the string I want to do a query... I'm using long URLs to pass variables more and more these days, as opposed to

Re: Regex Question

2010-12-03 Thread Jason Fisher
From: "Carl Von Stetten" Sent: Friday, December 03, 2010 12:36 PM To: "cf-talk" Subject: Re: Regex Question Robert, How about treating CGI.path_info as a list, using "/" as your delimiter. Then you can use the various list* functions in CF to parse it however yo

Re: Regex Question

2010-12-03 Thread Carl Von Stetten
Robert, How about treating CGI.path_info as a list, using "/" as your delimiter. Then you can use the various list* functions in CF to parse it however you want. Carl On 12/3/2010 9:26 AM, Robert Harrison wrote: > Regex is not my strong suit, but someone may know this off the top of their

Re: Regex question

2010-08-19 Thread Ian Skinner
On 8/19/2010 8:32 AM, Ian Skinner wrote: > I need to turn some relative links into absolute links in a string. > > I have this rereplace() working well to do that. > > rereplace(links,'(href=")([^"]*")','\1http://www.cdpr.ca.gov\2','ALL') Thank you Ian, adding the forward slash[/] character in

Re: Regex question

2008-07-17 Thread Sonny Savage
If I understand correctly, this should do what you want: ^\s+ On Thu, Jul 17, 2008 at 2:56 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote: > >I, for one, am having trouble understanding what you're trying to > >accomplish. I could probably help you if I understood the purpose/goal of > >your regul

Re: Regex question

2008-07-17 Thread Will Tomlinson
>I, for one, am having trouble understanding what you're trying to >accomplish. I could probably help you if I understood the purpose/goal of >your regular expression. > Sonny, thanks for the help! I could't make that regex work for my particular problem. Probably because I didn't explain it w

Re: Regex question

2008-07-17 Thread Sonny Savage
I, for one, am having trouble understanding what you're trying to accomplish. I could probably help you if I understood the purpose/goal of your regular expression. Assuming that you have this content loaded into a variable, you're not reading a line at a time from a file, and you're wanting to f

Re: regex question in rereplace

2007-03-29 Thread Ben Doom
You can certainly do it with a regex, but it might be more efficient to do it with a pair or replace() calls. Regex is inherently expensive. If you want to do it with regex, Jacob's suggestion should work. --Ben Doom Scott Stewart wrote: > I’ve got a variable which is a document descriptor (li

Re: regex question in rereplace

2007-03-28 Thread Jacob Munson
This should work: reReplace(myVar,"([;/])"," \1 ","all") It uses a technique called back references, which allows you to use the strings that match the regex in your replacement string (that's what the "\1" is). On 3/28/07, Scott Stewart <[EMAIL PROTECTED]> wrote: > I've got a variable which is a

RE: Regex question.

2007-03-02 Thread Ian Skinner
Why wouldn't you just loop over the cfexecute's return using crlf as the delim and a simple find("<20>",currentline) statement in the loop? If true treat the currentline as a space delimned list and trim(ListFirst(currentline," ")). Maybe not as elegant, but at least you can read it. Mik That

Re: Regex question.

2007-03-01 Thread Peter Boughton
oops, that arrayappend is wrong. Should be: (since not all rows have a space between the name and <[num]> bit. > *shrug* Almost did give a solution similar to that, but then decided > to go for a regex one since that's what was specifically asked for. > But reconsidering, I agree - I should've

Re: Regex question.

2007-03-01 Thread Peter Boughton
*shrug* Almost did give a solution similar to that, but then decided to go for a regex one since that's what was specifically asked for. But reconsidering, I agree - I should've gone for the more readable one... ',thisRow)> > Why wouldn't you just loop over the cfexecute'

Re: Regex question.

2007-03-01 Thread Mik Muller
Why wouldn't you just loop over the cfexecute's return using crlf as the delim and a simple find("<20>",currentline) statement in the loop? If true treat the currentline as a space delimned list and trim(ListFirst(currentline," ")). Maybe not as elegant, but at least you can read it. Mik At 0

Re: Regex question.

2007-03-01 Thread Peter Boughton
Not convinced this is the best way, but it works: [^\n]*)+',',','all')/> (First REReplace isolates any <20> lines, second one cuts out non-name data and converts to array) > How would one of you regex skilled people find the name on the line > that has a <20> in it, there maybe more then on

RE: Regex question.

2007-03-01 Thread Ian Skinner
By importing it as a column-width datasource. :-) Unfortunately not, since this the output from a command. Not tested, YMMV, etc. Thanks, I will give it a try, looks good and should replace the 5 line looping structure I currently have. -- Ian Skinner Web Programmer BloodSource

Re: Regex question.

2007-03-01 Thread Ben Doom
By importing it as a column-width datasource. :-) However, if that's not an option, you could use a regex like this: (^|#linebreak#).+?<20>.+?(#linebreak#|$) To identify lines which match your criterion. #linebreak# should contain whatever linebreak character(s) were used, obviously. Use re

RE: RegEx Question

2005-09-09 Thread Kevin Penny
Ok - I think I found it \[[^]]*\] I dind't need to escape the ] in the Inner NOT Clause I guess Kevin -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 3:36 PM To: CF-Talk Subject: Re: RegEx Question >>I'm tr

Re: RegEx Question

2005-09-09 Thread Claude Schneegans
>>I'm trying to create a regular expression that will work to find all strings that are within a [ ] block (square bracket area) For this kind of job, CF_Reextract is the best tool: See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf You can even test it online on y

RE: RegEx question: Multiple replaces in one statement

2005-07-29 Thread Ian Skinner
code. C code run. Run code run. Please!" - Cynthia Dunning -Original Message- From: B G [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 11:35 AM To: CF-Talk ....Subject: RE: RegEx question: Multiple replaces in one statement Thanks! I actually did ha

RE: RegEx question: Multiple replaces in one statement

2005-07-29 Thread B G
-Talk >Subject: RE: RegEx question: Multiple replaces in one statement >Date: Fri, 29 Jul 2005 11:19:07 -0500 > >Here's how I would do it: > >Replace(Replace(qGetBrandNames.Brand_Names,"~","(r)","ALL"),"^","&##8482;&quo

RE: RegEx question: Multiple replaces in one statement

2005-07-29 Thread Dave.Phillips
] Sent: Friday, July 29, 2005 12:05 PM To: CF-Talk Subject: Re: RegEx question: Multiple replaces in one statement Nope, but you don't REreplace at all, a simple replace will do the trick just as well, and with less overhead. You could even use replaceList, but I'd not recommend that,

Re: RegEx question: Multiple replaces in one statement

2005-07-29 Thread Barney Boisvert
Nope, but you don't REreplace at all, a simple replace will do the trick just as well, and with less overhead. You could even use replaceList, but I'd not recommend that, as it has some weird quirks. cheers, barneyb On 7/29/05, B G <[EMAIL PROTECTED]> wrote: > Is it possible to replace two diffe

Re: Regex Question

2005-02-16 Thread Tony Hicks
Actually, it wouldn't.. The way an average is to be calculated here is to add up the balance for each day of the month and divide by number of days in the month. It was easy to deposit the balance on days that had deposits, it got harder on days that didn't have deposits.. I did end up using a cf

Re: Regex Question

2005-02-16 Thread Tony Hicks
Actually, it wouldn't.. The way an average is to be calculated here is to add up the balance for each day of the month and divide by number of days in the month. It was easy to deposit the balance on days that had deposits, it got harder on days that didn't have deposits.. I did end up using a cf

Re: Regex Question

2005-02-16 Thread Greg Morphis
Tony, if someone entered a 0, wouldnt you want to account for that? Or if you didnt.. why not delete the 0's and then get an average (if they're just place holders)? If a 0 is just a place holder, you wouldnt want to replace it with a previous value. That would mess up your average. On Wed, 16 F

Re: Regex Question

2005-02-16 Thread Ben Doom
S.Isaac pointed out that I'd misread the original post. I thought he wanted to remove them, not replace them. That makes this just a wee bit harder. :-) Since what he's wanting to do is apparently average them, I'd write the summation loop manually and track the last non-zero value to use in

Re: Regex Question

2005-02-15 Thread Tony Hicks
Thanks for the input.. Yeah.. I need to average these... What these are is day-end balances.. and basically, so its easy to do if there was a transaction that day.. if there wasn't, it gets harder, because that returns a 0. I know of a few different loops that would get the job done, but the idea

RE: Regex Question

2005-02-15 Thread Michael Dinowitz
Ben, I've tried this a few ways and I can't find any way to do a single run RegEx which will do the job. Handling a single 0 is child's play. Handling multiple properly is not happening. If this was put in a loop, I can see it but. What do you suggest as a solution that will handle multiple 0

Re: Regex Question

2005-02-15 Thread S . Isaac Dealey
I don't think listdeleteat() would produce what he wants actually -- 'cause he's wanting to replace those list items, not remove them. If I read it correctly. > Well, you could use listdeleteat() to remove them. That > would probably > be more human readable later. It would also handle > boundar

Re: Regex Question

2005-02-15 Thread S . Isaac Dealey
> Does anyone know if there's a way to replace an unkown > number of > consequitive 0s in a list with the previous number.. > For instance... > 147,0,119,137,0,0,0,154 would become.. > 147,147,119,137,137,137,137,154 try this as a starting place: while (listfindnocase(mylist,0)) { rereplacen

Re: Regex Question

2005-02-15 Thread Ben Doom
Well, you could use listdeleteat() to remove them. That would probably be more human readable later. It would also handle boundary cases (ie the first and last items) easily and cleanly. If, for some reason, you really want to use a regex, it certainly can be done. :-) --Ben Tony Hicks wro

RE: regex question

2004-12-22 Thread Pascal Peters
It all depends what you want to do with the XXX. If you want to use it as is, you can use backreferencing: REReplaceNoCase(CONTENT,"",'\1',"ALL") Where \1 will match XXX. If you need to transform it, you will need a loop: start = 1; while(true){ stTmp = REFindNoCase("",content,start,true);

Re: RegEx Question

2004-10-06 Thread Ben Doom
Not directly.  However, you could use refind() to find the string.  I don't remember what the syntax is off the top of my head, but you can get the length and position of each matching string.  You could then replace it using repeatstring(). I had to do what you appear to want to do, and that's

Re: Regex Question

2004-09-24 Thread Claude Schneegans
>>I need to replace [GT:moons] with href=""> This is a typical job for CF_REextract. See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.c

RE: [Spam?] Re: Regex Question

2004-09-24 Thread Pascal Peters
I suspect that he wants to replace all glossary terms, not just "moons": REReplace(string,'\[GT:([^]]+)\]',' href=""> Pascal > -Original Message- > From: Andy Jarrett [mailto:[EMAIL PROTECTED] > Sent: 24 September 2004 17:28 >

Re: Regex Question

2004-09-24 Thread Jochem van Dieten
Andy Jarrett wrote: > WIthout sounding silly. Isn't this more of a simple replace rather > than using RegEx? A replace is actually more difficult since you would probably want to preserve case. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Do

Re: Regex Question

2004-09-24 Thread Andy Jarrett
WIthout sounding silly. Isn't this more of a simple replace rather than using RegEx? replace(string, '[GT:moons]', ' href=""> ', 'all') Just a thought Andy On Fri, 24 Sep 2004 10:18:53 -0400, Duane Boudreau <[EMAIL PROTECTED]> wrote: > Hi All, > > > Got a regex question. > > > Sample conten

Re: Regex Question

2004-09-24 Thread Ben Doom
>   _   > > From: Ben Doom [mailto:[EMAIL PROTECTED] > Sent: Friday, September 24, 2004 10:29 AM > To: CF-Talk > Subject: Re: Regex Question > > > On CFMX, this is the cleanest to read: > > "\[GT:(.*?)\]" > > On CF5, you'll have to u

RE: Regex Question

2004-09-24 Thread Duane Boudreau
Both Jochem and Ben were very close, here's what worked: "\[GT:([^]]*)\]" All I had to do was add the * Thanks Guys! Duane   _   From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 10:29 AM To: CF-Talk Subject: Re: Regex Question On CFMX, this

Re: Regex Question

2004-09-24 Thread Ben Doom
On CFMX, this is the cleanest to read: "\[GT:(.*?)\]" On CF5, you'll have to use: "\[GT:([^]])\]" Not tested, may need tweaking, YMMV, etc. --Ben Duane Boudreau wrote: > Hi All, >   > Got a regex question. >   > Sample content block: There are 31 [GT:moons] that surround Saturn >   > I need t

Re: Regex Question

2004-09-24 Thread Jochem van Dieten
Duane Boudreau wrote: >   > Sample content block: There are 31 [GT:moons] that surround Saturn >   > I need to replace [GT:moons] with > href=""> >   > I've got the following regex ,"\[GT:([a-zA-Z0-9 \'\\/]*)\]", but the problem > is that I really need to check for any character between [GT: and ]

Re: Regex Question: All punct except...

2004-08-20 Thread Ben Doom
Alistair Davidson wrote: > One solution I've used before in vaguely similar situations is to > replace the / character with a placeholder, do the nice clean reg ex, > then put the slashes back: > but : > -  you have to choose a placeholder that's never going to appear > in your input string

RE: Regex Question: All punct except...

2004-08-20 Thread Alistair Davidson
One solution I've used before in vaguely similar situations is to replace the / character with a placeholder, do the nice clean reg ex, then put the slashes back: myString = replace( myString, "/", "PLACEHOLDER", "ALL" ); myString = REReplace( myString, "[[:punct:]]", "", "ALL" ); myString = Rep

Re: Regex Question: All punct except...

2004-08-19 Thread Patricia Lee
Thanks for the repy and for the advice.  Not my strong suit, regex is. -P > I can't think of a clean way to use the punct class. > > However, I will state that writing out the chars you *do* want to > replace in a class is going to run faster than what you have.  On the > other hand, it's annoyin

Re: Regex Question: All punct except...

2004-08-19 Thread Ben Doom
I can't think of a clean way to use the punct class. However, I will state that writing out the chars you *do* want to replace in a class is going to run faster than what you have.  On the other hand, it's annoying to write.  :-) --Ben Patricia Lee wrote: > I want a CF regex to replace all pu

RE: RegEx Question...

2003-11-07 Thread Che Vilnonis
Thanks Ben.   -Original Message-   From: Ben Doom [mailto:[EMAIL PROTECTED]   Sent: Friday, November 07, 2003 2:42 PM   To: CF-Talk   Subject: Re: RegEx Question...   Assuming you are requiring the 1- and the area code:   1-[0-9]{3}-[0-9]{3}-[0-9]{4}   Something more flexible might be

Re: RegEx Question...

2003-11-07 Thread Ben Doom
Assuming you are requiring the 1- and the area code: 1-[0-9]{3}-[0-9]{3}-[0-9]{4} Something more flexible might be ((1-)?[0-9]{3}-)?[0-9]{3}-[0-9]{4} HTH. --Ben Doom Che Vilnonis wrote: > Real simple questionfolks...I use something like this to flag invalid > zipcodes: > > > if (NOT (REFin

RE: RegEx Question

2003-07-02 Thread Ben Doom
OK. It's implied, but I'm assuming you want these to stop being links, am I right? If so, you need to do something more like the following: foo = REReplaceNoCase(foo,'([^<]*)',"\1", "all"); Note that I've removed the ^.* and the .*$ because these will cause the regex to match all of foo if it c

RE: RegEx Question

2003-07-02 Thread Gaulin, Mark
Hi First off, remove the leading "'^.*" and trailing ".*$"; they aren't necessary in this case and just get in the way Also, you need to backquote the literal ()'s to distinguish them from ()'s that are part of the regex. Also, you could use the [[:digit:]] thing instead of [0-9], but you don't nee

Re: Regex question

2003-07-01 Thread Jim McAtee
If you just want to replace all occurences of ~AA (caps only), anywhere in the file and you have the entire file contents in a single variable, the following should work: If you need to discern this character sequence only when it's the only thing on a line, you'll need to step through the file

RE: RegEx Question

2002-11-26 Thread Jim Davis
> -Original Message- > From: Duane Boudreau [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 12:37 PM > To: CF-Talk > Subject: RegEx Question > > > I'm not sure why I can not get this to work. What am I doing wrong? > > I want to replace * > > TIA, > Duane > > > > > "

Re: RegEx Question

2002-11-26 Thread S . Isaac Dealey
> I'm not sure why I can not get this to work. What am I doing wrong? > I want to replace * > TIA, > Duane > > > [*]", > "#myStr2#")> Hey Duane, You might want to check out [EMAIL PROTECTED] To answer your question, * means "zero or more", so you have to place it after what you want zero o

RE: RegEx Question

2002-11-26 Thread Justin MacCarthy
I'll explain why this doesn't work. "[*]" This replaces "" followed by anything followed by . The problem is that Regexs are "greedy" so this replaces followed by anything _including_ "" What you want is to replace followed by anything UNTIL . So you need to do something like "[^()]" - (pseu

RE: regex question

2002-08-22 Thread todd
ED]] > > Sent: Thursday, August 22, 2002 8:51 AM > > To: CF-Talk > > Subject: RE: regex question > > > > > > Yeah, I know Evaluate() isn't generally a good idea. I was > > just going by the > > information I had at the time. Subsequent message

RE: regex question

2002-08-22 Thread Tony Weeg
ECTED]] Sent: Thursday, August 22, 2002 8:51 AM To: CF-Talk Subject: RE: regex question Yeah, I know Evaluate() isn't generally a good idea. I was just going by the information I had at the time. Subsequent messages had more information making my little suggestion inconsequential. If I could have r

RE: regex question

2002-08-22 Thread Raymond Camden
s the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Everett, Al [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 22, 2002 8:51 AM > To: CF-Talk > Subject: RE: regex question > > > Yeah, I know Evaluate() isn't generally

RE: regex question

2002-08-22 Thread Tony Weeg
t analysis) ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 8:46 AM To: CF-Talk Subject: RE: regex ques

RE: regex question

2002-08-22 Thread Everett, Al
Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 22, 2002 8:38 AM > To: CF-Talk > Subject: RE: regex question > > > sick'em RAY! > > On Thu, 22 Aug 2002, Everett, Al wrote: > > > Assuming

RE: regex question

2002-08-22 Thread Raymond Camden
ly is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 22, 2002 8:38 AM > To: CF-Talk > Subject: RE: regex question > > > sick'em RAY! > > On Thu, 22 A

RE: regex question

2002-08-22 Thread todd
sick'em RAY! On Thu, 22 Aug 2002, Everett, Al wrote: > Assuming that string is in a variable 'x', this will do it: > > > > > -Original Message- > > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > > > > report_id="545687" > > > > if i wanted to find that string above (report_id="545687"

RE: regex question

2002-08-22 Thread Everett, Al
Assuming that string is in a variable 'x', this will do it: > -Original Message- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > > report_id="545687" > > if i wanted to find that string above (report_id="545687"), > and extract the digits from inside the > string, and make them a cf va

Re: regex question

2002-08-22 Thread Jesse Houwing
Matthew Walker wrote: > result = REFind("report_id=""([0-9]+)"", myString, 1, true); > theNumber = Mid(myString, result.pos[2],result.len[2]); > > ..I think! ;-) You missed a quote in there: REFind("report_id=""([0-9]+)""", myString, 1, true); _

RE: regex question

2002-08-21 Thread Tony Weeg
great, thank you mike ;) thank you matt. dick's one liner, works great very slick!! tw -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:42 PM To: CF-Talk Subject: Re: regex question Your missing a quote This is

RE: regex question

2002-08-21 Thread Matthew Walker
> but this is the error i get when i run > your code? I missed a quote. But there may be other errors ;-) __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. htt

Re: regex question

2002-08-21 Thread Michael Dinowitz
From: Matthew Walker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 10:15 PM > To: CF-Talk > Subject: RE: regex question > > > > cant seem to get this to jivewhats my issue? > > > > > > > > > > I realise you've

RE: regex question

2002-08-21 Thread Tony Weeg
its a balmy 69 degrees 5-10 mph wind off the bay, some of my friends are out on our dock fishing for rockfish ;) nice night! tw -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:29 PM To: CF-Talk Subject: Re: regex question

RE: regex question

2002-08-21 Thread Tony Weeg
; MSIE 6.0; Windows NT 5.1) Remote Address: 127.0.0.1 -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 10:15 PM To: CF-Talk Subject: RE: regex question > cant seem to get this to jivewhats my issue? > > > > I rea

Re: regex question

2002-08-21 Thread Dick Applebaum
Here's a one-liner that works on CFMX (Imade a typo in the original post... sorry). Dick Ahh... Blue crabs what's the temp ... about 70 here in Pasadena On Wednesday, August 21, 2002, at 06:56 PM, Tony Weeg wrote: > cfset report_id = ReReplaceNocase(sourceString, > '.*report_id="([^\

RE: regex question

2002-08-21 Thread Matthew Walker
> cant seem to get this to jivewhats my issue? > > > > I realise you've got another solution but for your reference here's the idea. The first line creates a structure of arrays which you would put in a holding variable like result (not reportid). Then the second line grabs the number (t

RE: regex question

2002-08-21 Thread Tony Weeg
: RE: regex question ok, i know, ive got mpd and smart/dumb tony are talking back and forth right, no! my man, the God of CODE, Ryan Peters has shown me the light, AoL inst mess. is great for getting quick tips from great people check this out, does this make sense, can it be done better

RE: regex question

2002-08-21 Thread Tony Weeg
? #ReportId# this works 100% thanks for all your help! tony -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:58 PM To: CF-Talk Subject: RE: regex question cant seem to get this to jivewhats my issue? tw -Original Message

RE: regex question

2002-08-21 Thread Tony Weeg
cant seem to get this to jivewhats my issue? tw -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:51 PM To: CF-Talk Subject: RE: regex question result = REFind("report_id=""([0-9]+)"", myString,

RE: regex question

2002-08-21 Thread Tony Weeg
report_id="545687" is part of an xml feed, that i turn into a var then need to extrapolate that into a var called #reportId# tw -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:51 PM To: CF-Talk Subject: Re: regex ques

Re: regex question

2002-08-21 Thread Dick Applebaum
The way you defined it: What you probably mean is something like: Dick On Wednesday, August 21, 2002, at 06:38 PM, Tony Weeg wrote: > report_id="545687" > > > if i wanted to find that string above (report_id="545687"), > and extract the digits from inside the > string, and make them a cf

RE: regex question

2002-08-21 Thread Matthew Walker
result = REFind("report_id=""([0-9]+)"", myString, 1, true); theNumber = Mid(myString, result.pos[2],result.len[2]); ..I think! ;-) > -Original Message- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 22 August 2002 1:39 p.m. > To: CF-Talk > Subject: regex question > > >

RE: Regex question.

2002-01-29 Thread Kola Oyedeji
Try ReplaceNoCase(cfhttp.fileContent, "[ a-zA-Z0-9]+2002", "") Not sure how to broaden this to include symbols (?http://www.ekeda.co.uk (+44)020-8429-7300 > -Original Message- > From: Jeff Fongemie [mailto:[EMAIL PROTECTED]] > Sent: 29 January 2002 14:44 > To: CF-Talk > Subject: Regex

Re: Regex question.

2002-01-29 Thread savan . thongvanh
oops, omit the first * and slap a $ on there to terminate the string /\w*\W*2002$/ [EMAIL PROTECTED] on 01/29/2002 08:52:16 AM Please respond to [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> cc: Subject: Re: Regex question. i'm not sure what CF's regex syntax i

Re: Regex question.

2002-01-29 Thread savan . thongvanh
i'm not sure what CF's regex syntax is exactly but in other quasi-stand ard types i would use /*\W*\w*2002/ Jeff Fongemie <[EMAIL PROTECTED]> on 01/29/2002 08:44:02 AM Please respond to [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> cc: Subject: Regex question. Tuesday, January 29,