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, th
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+' ?
~~~
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 all
Hi there... trying to match the following... Where you see 'Part-Time' I want
to be optional any text.
%20Java%20Part-Time%20Developer%20
with the following code...
[%20]*java%20[\w+]*%20developer[%20]* <-- does not work
%20java%20part-time%20developer%20 <-- works
t;-Original Message-----
>From: Brook Davies [mailto:[EMAIL PROTECTED]
>Sent: 17 March 2005 22:08
>To: CF-Talk
>Subject: Reg Expression Help
>
>
>Okay, Regex is not my strong suite and this one has been eluding me all
>morning. I'm trying to replace any occurrences of &quo
t;'\1=\2'",
> "ALL")#
>
>
>Ade
>
>-Original Message-----
>From: Brook Davies [mailto:[EMAIL PROTECTED]
>Sent: 17 March 2005 22:08
>To: CF-Talk
>Subject: Reg Expression Help
>
>
>Okay, Regex is not my strong suite and this one has been
How's aboot
#tempString#
#REReplace(tempString, "'(.*)?==(.*)?'", "'\1=\2'", "ALL")#
Ade
-Original Message-
From: Brook Davies [mailto:[EMAIL PROTECTED]
Sent: 17 March 2005 22:08
To: CF-Talk
Subject: Reg Expres
Okay, Regex is not my strong suite and this one has been eluding me all
morning. I'm trying to replace any occurrences of "==" inside a string
enclosed with single quotes. So my test string is:
And I want to replace the "==" at the end of this string inside the single
quotes with "=" but I do
: CF-Talk <[EMAIL PROTECTED]>
Sent: Sep 04, 2003 12:55 PM
Subject: Re: reg expression help
>folks,
>
>If I wanted to find the value of the "template" attribute in a
>tag ... how would I do it using Regex?
>
>-Mark
>
>
>
>
~~~
template = rereplace(include_call, ".*.*", "\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
: Subj
folks,
If I wanted to find the value of the "template" attribute in a
tag ... how would I do it using Regex?
-Mark
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.
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?
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?
Thanks,
Rick
13 matches
Mail list logo