vqmod wildcard search using regex
问题 As an example here I am trying to replace all $this->load->model(*); , the * represents a wildcard search/replace. What is the correct way to do this in a regex? <operation> <search regex="true" position="replace"><![CDATA[ $this->load->model(.*); ]]></search> <add><![CDATA[ $this->load->model('catalog/information'); ]]></add> </operation> 回答1: The escaping required should be pretty minimal. You only need to escape the $ and the parentheses like so <search regex="true" position="replace"><!