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 Quote Link to comment 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 Quote Link to comment 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.