Re: reg expression help..

2006-04-27 Thread Rob Wilkerson
Hey Brian - You have a couple of...not necessarily errors, but constructs that I would consider unexpected. For example, [\w+]* when I think you mean \w+. In a character class, \w+ means, literally, a w character or a + character. Try this: %20java%20\w+%20developer%20 If you're allowing an

Re: reg expression help..

2006-04-27 Thread Brian McGarvie
Hey, thanks Rob, tried that and it didn't seem to work. Regarding the 'part-time' of that code. I would like the center element [\w+]* to allow for word(s) and for it to be optional as well ( ie no words ). I thought the code for a listing of multiple characters WAS in fact '\w+' ?

Re: reg expression help..

2006-04-27 Thread Rob Wilkerson
The problem, at least in this case is the - in Part-Time. It's a non-word character. This works: %20Java%20(\w+-?\w+)*%20Developer%20 It will allow for 0 or 1 dash in the optional text. It will also allow for text or no text. On 4/27/06, Brian McGarvie [EMAIL PROTECTED] wrote: Hey, thanks

RE: Reg Expression Help

2005-03-17 Thread Adrian Lynch
How's aboot cfset tempString = [CONFERENCE] == 'OPTION A - FULL CONFERENCE PACKAGE' OR [CONFERENCE] == '69 == this price' cfoutput pre#tempString#/pre pre#REReplace(tempString, '(.*)?==(.*)?', '\1=\2', ALL)#/pre /cfoutput Ade -Original Message- From: Brook Davies

RE: Reg Expression Help

2005-03-17 Thread Brook Davies
OMG, I can't believe you just did that and made it look so simple. Thank you, thank you, thank you!! Brook At 02:20 PM 3/17/2005, you wrote: How's aboot cfset tempString = [CONFERENCE] == 'OPTION A - FULL CONFERENCE PACKAGE' OR [CONFERENCE] == '69 == this price' cfoutput

RE: Reg Expression Help

2005-03-17 Thread Brook Davies
Opps, I found one small problem. If I change the tempString so that the first string inside the single quotes also has the match were looking for it does not get replaced: cfset tempString = [CONFERENCE] == 'OPTION A == FULL CONFERENCE PACKAGE' OR [CONFERENCE] == '69 == this price' The

RE: reg expression help

2003-09-04 Thread Ben Doom
template = rereplace(include_call, .*cfinclude +template *= *([^]*) *.*, \1) -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original Message- : From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED] : Sent: Thursday, September 04, 2003 1:55 PM : To: CF-Talk :

Re: reg expression help

2003-09-04 Thread info
: Re: reg expression help folks, If I wanted to find the value of the template attribute in a cfinclude tag ... how would I do it using Regex? -Mark ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription

Re: reg expression help please?

2001-08-28 Thread Jochem van Dieten
Rick Lamb wrote: Hoping someone with regular expression knowledge could help me. I need to take a string and eliminate everything but numbers, - negative signs and . decimal points. Basically just leaving pos and neg decimal numbers filtering out anything else. Anyone willing to help?