Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'String Pattern Matching' topicStudent Support Forum > General > Archives > "String Pattern Matching"

Next Comment >Help | Reply To Topic
Author Comment/Response
03/20/02 2:30pm

From a set number of patterns, I'm trying to see if they crop up in an inputted word -

StringMatchQ[word, Or@@patternSet]??

However I want to count the number of patterns that occur in the word. For example if the pattern *ae* and the pattern *blah* are both valid patterns in the one word how do I

i)output an affirmative result

ii)give an integer count of the num of patterns - in this case 2.????????

Any help would be greatly appreciated!

URL: ,

Subject (listing for 'String Pattern Matching')
Author Date Posted
String Pattern Matching John 03/20/02 2:30pm
Re: String Pattern Matching Forum Modera... 03/24/02 1:50pm
Next Comment >Help | Reply To Topic