buraisu Posted November 22, 2006 Share Posted November 22, 2006 [code]preg_split('/%\w+\^|, |\$\'?|\^|\?\s*(;|%)|=|\s{5,}|\s+\?/', $string);[/code]Would someone be able to tell me exactly what all the \^|\ and such means?I know what the preg_split function does, but I dont know what all the other stuff means?Thanks Link to comment https://forums.phpfreaks.com/topic/28161-can-anyone-tell-me-what-this-means/ Share on other sites More sharing options...
roopurt18 Posted November 22, 2006 Share Posted November 22, 2006 It's a regular expression. I'm not going to pick it apart, but basically it's a pattern matching mechanism that breaks $string apart based off of what the regexp represents.Try googling for any of these:regexpregexpsregular expressionregular expressions Link to comment https://forums.phpfreaks.com/topic/28161-can-anyone-tell-me-what-this-means/#findComment-128842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.