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) 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]; Link to comment https://forums.phpfreaks.com/topic/210055-between/#findComment-1096264 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.