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 Quote 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]+)\)~ Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.