Try new = ReReplaceNoCase(old, 'a href="([a-z0-9])', 'a href="../\1', 'all');
HTH Dick At 12:32 PM +0100 1/12/02, SID - ColdFusion wrote: >Hi there, > >I have a weird task to solve. I hope someone of you guys out there can >gimme a hint. >For a redesign of a customers site I have to replace links in >source-code of the original pages to fit into the redesign. The >problem is that those original sites (and their source) are messed up >like hell. >'Cause there are about 250 pages to modify I tried Studios Extended >Search-and-Replace-function to search for those links and replace them >with another via RegExpression because only '<a href="[some >letters]...">' have to be adjusted to '<a href="../[some >letters]...">letters]...">' >There are already other links on those pages that already begin with >'<a href="../blabla">' and so have not to be modified. >My problem with regExp is that it drops the first letter of the actual >link being modified 'cuz I let him/it(?) search for all href's >starting with a letter. So it ends up with (if the link was 'abc.html') >'<a href="../bc.html">'. So he dropped the 'a'. > >Are there any suggestions on how to use regExp for this? > >Help would be really appreciated... > > > >Patric Stumpe >mail: [EMAIL PROTECTED] > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists