Oct 10, 2003 #1 likelylad IS-IT--Management Jul 4, 2002 388 GB What is wrong with the following line of code $findmatch=preg_match_all("/a/",$contents); I am trying to find if the letter a exists in the variable $contents. I will then use the subsequent array to count how many times it counted
What is wrong with the following line of code $findmatch=preg_match_all("/a/",$contents); I am trying to find if the letter a exists in the variable $contents. I will then use the subsequent array to count how many times it counted
Oct 10, 2003 #2 sleipnir214 Programmer May 6, 2002 15,350 US First of all, you're not providing preg_match_all() with the correct number of input parameters. Take a look at the online manual page: http://us3.php.net/manual/en/function.preg-match-all.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!! Upvote 0 Downvote
First of all, you're not providing preg_match_all() with the correct number of input parameters. Take a look at the online manual page: http://us3.php.net/manual/en/function.preg-match-all.php Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!!
Oct 13, 2003 Thread starter #3 likelylad IS-IT--Management Jul 4, 2002 388 GB OK, don't really understand the notes. What I would like to do is search a string that may contain one of a pre-specified group of characters. eg in a string I may want to find a or b or c Upvote 0 Downvote
OK, don't really understand the notes. What I would like to do is search a string that may contain one of a pre-specified group of characters. eg in a string I may want to find a or b or c
Oct 13, 2003 Thread starter #4 likelylad IS-IT--Management Jul 4, 2002 388 GB I have gotten the following to work for me eregi("[À-ÖØ-öø-ÿ]",$splitfile,$reg) but how do I count all characters in that range???? Upvote 0 Downvote
I have gotten the following to work for me eregi("[À-ÖØ-öø-ÿ]",$splitfile,$reg) but how do I count all characters in that range????