Sample Text
Hello
World
<pre><code><VirtualHost *:80>
ServerAdmin abc@gmail.com
DocumentRoot "C:\wamp\www\abc\public"
ServerName abc.local
ErrorLog "logs/abc.local-error.log"
CustomLog "logs/abc.local-access.log" common
</VirtualHost>
</code></pre>
<pre><code><VirtualHost *:80>
ServerAdmin abc@gmail.com
DocumentRoot "C:\wamp\www\abc\public"
ServerName abc.local
ErrorLog "logs/abc.local-error.log"
CustomLog "logs/abc.local-access.log" common
</VirtualHost>
</code></pre>
Hello
World
I would like to match all tabs only between <code></code>
, I have tried using /(<code>)*([\t])+/g
, but it still matches all tabs (everywhere), I intend to replace those tabs with 2 spaces later
Please guide or hint me with some regex, thanks