Andrew R Posted September 5, 2010 Share Posted September 5, 2010 For example. I have the following: Andrew (Age 19) How would I get the content between the brackets, Age 19 using preg_match_all or a similar function? Thanks very much Link to comment https://forums.phpfreaks.com/topic/212610-using-preg_match_all-to-get-content-between-brackets/ Share on other sites More sharing options...
wildteen88 Posted September 5, 2010 Share Posted September 5, 2010 Try the regex pattern ~\(Age ([0-9]+)\)~ Link to comment https://forums.phpfreaks.com/topic/212610-using-preg_match_all-to-get-content-between-brackets/#findComment-1107608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.