Hi,
Hope someone is able to help me with a problem I have run into with a regular expression which I thought was working perfectly for a while!
The expression :
preg_match_all("#<\#if:.*?>#s", $Template, $StartTags, PREG_OFFSET_CAPTURE);
This fetches custom tags from a html file which appear in the following format
<#if:some_text>
pretty simple and work in all cases where some_text is normal text, however when it contains the character '>' (ie html tags such as <b>) it fails too extract the text,
is there a way to modify the pattern I am using to fetch these html tag characters as well? bearing in mind '>' denone the end of custom tag as the expression shows.
Thanks for any help on this!
extracting certain characters
Moderator: General Moderators