in reply to Re: Re: Re: regex problem...
in thread regex problem... parsing html font tags
For handling ending FONT tags, you can catch the end of tag event and insert the appropriate ending tag. If the ending tag may vary you can keep (an) array(s) indicating what type of ending tag(s) to use (each element telling you information for one tag), push onto them when you encounter a start FONT tag, and pop off them when you encoutner an end FONT tag and output the appropriate tags.
(update: last paragraph rewritten)
|
|---|