Ninjakreborn Posted June 16, 2006 Share Posted June 16, 2006 I am trying to find some regular expressions to check for commas after each word, is there any you know of I tried google searches with no luck, and www.regular-expressions.info doesn't seem to have anything specific either. Quote Link to comment Share on other sites More sharing options...
poirot Posted June 16, 2006 Share Posted June 16, 2006 Commas after each word? For what you'd need that? How exactly you want it to match? What is a "word"? Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted June 16, 2006 Author Share Posted June 16, 2006 www.funnyemailforwards.com the keywords, I have to validate them to seperate by commas for the database don't I. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 16, 2006 Share Posted June 16, 2006 you can use explode? which will split the keywords up into an array then you can validate each keyword one by one:[code]$keywords = explode(',', $_POST['keywords'];foreach($keywords as $k => $v){ //validate each keyword, $v stores the keyword.}[/code] Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted June 16, 2006 Author Share Posted June 16, 2006 ahh, thanks I appreciate it. 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.