ted_chou12 Posted December 19, 2008 Share Posted December 19, 2008 Hello, what expression do u use if u want to match both of these: <somestring> and <somestring secondstring> so that the second string can be there or not be there, Thanks, Ted Quote Link to comment https://forums.phpfreaks.com/topic/137636-solved-regex-matching-a-string/ Share on other sites More sharing options...
.josh Posted December 19, 2008 Share Posted December 19, 2008 <something[^>]*> Quote Link to comment https://forums.phpfreaks.com/topic/137636-solved-regex-matching-a-string/#findComment-719401 Share on other sites More sharing options...
ted_chou12 Posted December 19, 2008 Author Share Posted December 19, 2008 that worked Quote Link to comment https://forums.phpfreaks.com/topic/137636-solved-regex-matching-a-string/#findComment-719402 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.