radim24 Posted September 8, 2006 Share Posted September 8, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/20124-matching-between-options/ Share on other sites More sharing options...
effigy Posted September 8, 2006 Share Posted September 8, 2006 [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] Quote Link to comment https://forums.phpfreaks.com/topic/20124-matching-between-options/#findComment-88413 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.