Prismatic Posted March 26, 2008 Share Posted March 26, 2008 Ive got a string that looks like this ":blehbob!n=blehblehblehblehbleh......." I need to be able to match everything between the : and the ! in the string, so in this case "blehbob" would be returned.. Any ideas? Link to comment https://forums.phpfreaks.com/topic/97922-need-a-quick-expression-to-match-a-simple-string/ Share on other sites More sharing options...
effigy Posted March 26, 2008 Share Posted March 26, 2008 /:([^!]*)!/ Link to comment https://forums.phpfreaks.com/topic/97922-need-a-quick-expression-to-match-a-simple-string/#findComment-501216 Share on other sites More sharing options...
Prismatic Posted March 27, 2008 Author Share Posted March 27, 2008 /:([^!]*)!/ Works great! Thank you! Link to comment https://forums.phpfreaks.com/topic/97922-need-a-quick-expression-to-match-a-simple-string/#findComment-501940 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.