theplanetfixer:
--------------------------------------------------------------------------------
Thanks first for your fast answer.

To avoid messing around I would need something like this:

Any file starting by <<http://>>
any file ending by <<.html>>
replace all underscore by dashes (between the http:// and .html)

Thanks a lot!

Roger
--------------------------------------------------------------------------------


Thanks for the clarification,
I'm assuming you have these URLs in one text file (having to scan multiple files
would make this more complicated.
If you need to do this with replacement only (without scripting), I can only see
a slightly inconvenient way - performing the same replacement repeatedly, until
there are no matches left.
search pattern could be:
(http://.*)_(.*\.html)
replacement pattern:
$1-$2

[x] Regular expression search must be checked

Each run of the replacement handles one (the last one) underscore within each
substring http:// and .html (within a single line).

hth,
   vbr

-- 
<http://forum.pspad.com/read.php?2,61485,61490>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem