Jump to content

Archived

This topic is now archived and is closed to further replies.

radim24

Matching between options

Recommended Posts

Hi, i need a help.
I have
<option value="1"><h1>title</h1></option>
or
<option value="1"><i><u>title</u></i></option>
or
<option value="1"><P class=i>title</option>


and i need to get the tag <h1></h1> or other tag like <b></b> or <P>.  but the pattern must point that "<option

value=" is before and "</option> " is after the tag.

Share this post


Link to post
Share on other sites
[b]I've removed your duplicate posts that were added to other topics. If you need help, [u]post a new topic[/u].[/b]

Here: [tt]%<option[^>]*>(.+?)</option>%[/tt]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.