
05-31-2005, 10:08 AM
|
 |
|
|
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
It's there by default...
Quote:
Find and Replace in Templates (be careful!)
|
and even...
Quote:
Notes for Using Regular Expressions with Find and Replace
The regular expression option is for advanced users only! Setting this option to 'yes' will use preg_replace() instead of str_replace() for your find/replace operation. Do not use this option if you are not sure how to use PCRE regular expressions!
Example usage: Find <img (.*)/?> and replace with <img \1 /> would find all <img> tags and make them XHTML compliant by adding the closing slash. The actual command executed from this would be:
preg_replace('#<img (.*)/?>#siU', '<img \1 />', $template);
|
|