/ ^ ( [\$%@*] | (<) ) ( .* ) (? (2) > ) # ( (2) stands for $2 (the (<) above)) $ /x; [download]
In reply to Re: Re: conditional match in regex by petral in thread conditional match in regex by John M. Dlugosz