Hi all,
I'm trying to write a regular _expression_ and am having a little
trouble... What I want to do is replace all instances of '/document.cfm'
in a string with '/public/document.cfm', unless the original substring
is '/public/document.cfm' - ie I don't want to end up with
I'm trying to write a regular _expression_ and am having a little
trouble... What I want to do is replace all instances of '/document.cfm'
in a string with '/public/document.cfm', unless the original substring
is '/public/document.cfm' - ie I don't want to end up with
BTW Since sometimes I fund useful to access Jav's string APIs, I put
together a collection of UDF inside a CFC:
http://www.cfmentor.com/code/index.cfm?action="">
I am also almost finished a similar CFC that act as a wrapper for the
java.util.regex package. I just need to polish it a little bit;
Wow.That's pretty cool.I would love to see a copy when it gets finished.
--Ben doom
Massimo Foti wrote:
BTW Since sometimes I fund useful to access Jav's string APIs, I put
together a collection of UDF inside a CFC:
http://www.cfmentor.com/code/index.cfm?action="">
Besides using regex, there's a pretty stilly way of dealing with this.
Replace() all the /public/document.cfm links with just /document.cfm,
then replace all the /document.cfm links with /public/document.cfm
It's a bit absurd, but it's an easy, quick fix that doesn't have to
invoke a regex
5 matches
Mail list logo