Find/parse server-side <?abc?>-like tags in html document

Posted by Iggyhopper on Stack Overflow See other posts from Stack Overflow or by Iggyhopper
Published on 2010-12-21T07:18:09Z Indexed on 2010/12/21 15:54 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

I guess I need some regex help. I want to find all tags like <?abc?> so that I can replace it with whatever the results are for the code ran inside. I just need help regexing the tag/code string, not parsing the code inside :p.

<b><?abc print 'test' ?></b> would result in <b>test</b>

Edit: Not specifically but in general, matching (<?[chars] (code group) ?>)

© Stack Overflow or respective owner

Related posts about c#

Related posts about html