Wolphie Posted June 6, 2008 Share Posted June 6, 2008 Could someone explain how to get output variables from a regular expression? For example, if I wanted to retrieve the text from inside BBCode tags. I know it's called from something like $1. Link to comment https://forums.phpfreaks.com/topic/108968-regex-and-variables/ Share on other sites More sharing options...
effigy Posted June 6, 2008 Share Posted June 6, 2008 An array is returned with the full match and the parenthetical matches. This has some examples and explanations. Link to comment https://forums.phpfreaks.com/topic/108968-regex-and-variables/#findComment-559129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.