If you are using any Cold Fusion MX version you can use the underlying regex
engine. I came into this thread late, but if this helps you then great.
Take a look at the below blog to see what mean. This works with Cold Fusion
version 6 to current.
http://patweb99.avatu.com/post.cfm/how-to-access-un
> Lookaround doesn't work with ColdFusion's regex engine. Instead, use
> Java's:
As far as I remember lookaheads work, lookbehind don't.
Please correct me if I am wrong.
Will, if you want to use Java RegExp, you can try this CFC:
http://www.massimocorner.com/coldfusion/cfc/tmt_java_regexp.zip
-
Wowee... in CF8, this works with a lookahead.
Returns an array:
1var someVar
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/c
>Will,
>
>Lookaround doesn't work with ColdFusion's regex engine. Instead, use Java's:
>
>#str.matches(re)# (returns true/false)
>
>also look into replaceFirst, replaceAll and split.
Check this out too:
http://www.bennadel.com/blog/769-Learning-ColdFusion-8-REMatch-For-Regular-Expression-Matching
>Will,
>
>Lookaround doesn't work with ColdFusion's regex engine. Instead, use Java's:
>
>#str.matches(re)# (returns true/false)
>
>also look into replaceFirst, replaceAll and split.
>
Thanks dude! I'll check it out.
Will
~|
A
Will,
Lookaround doesn't work with ColdFusion's regex engine. Instead, use Java's:
#str.matches(re)# (returns true/false)
also look into replaceFirst, replaceAll and split.
Ehh, I'd link my blog where I have a couple entries and a presentation on
it, but I've been having DNS issues for a few da
Dangit. I can't make this flag it. It LOOKS like it'd work.
Find the first instance of the rbo call, then make sure it's closed AFTERwards.
#reFindNoCase(re, str)#
~|
Adobe® ColdFusion® 8 software 8 is the most importan
I didn't phrase that right. I want to check and make sure this is located after
the var rbo line. I guess I could do one at a time.
rbo = closeObj();
rbo = "";
~|
Adobe® ColdFusion® 8 software 8 is the most important and drama
I wanted to see if I could use a negative look ahead on this block of code to
make sure if there's a var rbo=""; in the code, there must be a rbo =
closeObj(); somewhere after it. Like so...
I played around with a negative lookahead and it looks like a powerful regex
tool... I just can't make
9 matches
Mail list logo