global serch using "*"

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
julianoddy
Posts: 2
Joined: Mon Jan 31, 2011 11:28 pm

global serch using "*"

Post by julianoddy »

I have thousands of html files with different names in them eg
eric%20bagan
benjamin%20bagby

I wish to change the names to
eric_bagan
benjamin_bagby

I have tried using find exactly with pattern
*%20*
replace with
*_*

to no effect. I know i am being stupid but please help with very simple explanation
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: global serch using "*"

Post by DataMystic Support »

You could just search for
%20
and replace with
_

Or, use an EasyPattern search/replace for
[ capture(1+ letters ) ]%20[ capture(1+ letters ) ]
Replace with
$1_$2

Or, use a Perl Pattern search/replace for
(\w+)%20(\w+)
Replace with
$1_$2
julianoddy
Posts: 2
Joined: Mon Jan 31, 2011 11:28 pm

Re: global serch using "*"

Post by julianoddy »

Problem solved. What a fabulous level of support by DataMystic.

Wonderful Product. Wonderful Company
Post Reply