Thanks - but I'm not clear on how to use this.
<cfset theurl = "www.thesite.com/somefolde
<cfset cleanurl = rereplace(theurl,'s##/(.*)
( for CF I have to replace # with ## to get a single escaped hash mark)
The output should be
' www.thesite.com/somefolder
where the regEx finds 'somefolder//somefolder' but selects just the first part
i.e. ' somefolder // ' including the two //
which i replace with
'' (null)
So what i actually need is the regex that will identify
'string//string'
and select just the first part, 'string//' , for deletion
thanks//thanks
Main Topics
Browse All Topics





by: ozoPosted on 2009-06-21 at 10:04:14ID: 24677892
s#/(.*)//\1/#/$1/#g;