Zugzwangle Posted August 7, 2010 Share Posted August 7, 2010 Simple question.. what is the regex for 'between'? For example, I want to search between { and } and match and delete any special characters between them. (in php) Quote Link to comment https://forums.phpfreaks.com/topic/210055-between/ Share on other sites More sharing options...
JAY6390 Posted August 7, 2010 Share Posted August 7, 2010 $regex = '/\{([^\}]*)\}/'; preg_match($regex, $subject, $matches); echo $matches[1]; Quote Link to comment https://forums.phpfreaks.com/topic/210055-between/#findComment-1096264 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.