php - How do I use regex with vQmod? -


once again, stuck regex , don't know start.

i using vqmod build opencart extension , want able search files have code:

if (file_exists(dir_template . $this->config->get('config_template') 

the problem is, code above has more code in line in each file. there regex function lets me search part of line of code vqmod?

here have tried far:

<search position="before" regex="true"><![cdata[~if \(file_exists\(dir_template . $this->config->get\('config_template'\)~]]></search> 

thanks, peter

to search every catalog controller file (which of these are) use

<file name="catalog/controller/*/*.php"> 

if want search regex, use regex="true" , place regex in cdata tags

<search position="before|after|replace" regex="true"><![cdata[~regex-here-including-delimiters~]]></search> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -