in reply to Regex (?(...)...)
See "(?(condition)yes-pattern|no-pattern)" in perlre.
And please look at the preview and use <code> tags before posting.
updated: formatting