Hi folks,
I am trying to analyse a custom html-tag and translate it into another tag. I am using something like this:
/<([>]*)>/i
now any time a ">" occurs the statement succeeds and terminates.
Since a tag can have many parameters I want any "<" or ">" inside of quotations not to be accounted for terminating the expression. e.g. If someone writes something like:
<customtag parm="<?php echo "value"; ?>">
the regexp will terminate at the first ">" it finds which actually will be the closing of php with "?>". This of course is not the intend.
Anyone know a workaround?