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 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[^>]*> 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 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
Archived
This topic is now archived and is closed to further replies.