On Nov 22, 2009, at 8:40 AM, Tom007 wrote:

> I need to find a patten to replace this code in multiple files;
> 
> pages/xx.png
> 
> to replace
> 
> pages/xx.jpg

This will process from 0 to umpteen jillion

SEARCH :    (pages/[\d]+\.)png
REPLACE :    \1jpg

This will process from 0 thru 99

SEARCH :    (pages/[\d]{1,2}\.)png
REPLACE :    \1jpg



> 
> "xx" is a number from 1 to 82 depending the webpage and only need to
> replace the extension .png to .jpg
> Need to be a pattern because a simple find/replace would change
> undesired code that is similar.
> I will use Multi-File Search function for replace this code in
> multiple files.
> 
> When use Multi-File Search function and do a SAVE SET how can recover
> the criteria again (don't see a load set button)? It saves the search
> data only or the replace data also?

The modal find dialog has a popup menu designated by "patterns: [up/dn] arrows. 
You can save/load the search/replace there

> Thanks.
> Tom

Best Regards,

Bill Hernandez
Plano, Texas

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

Reply via email to