regex help - 07/04/08 10:15 AM
Greetings
I need a regex that will return true if there are more then ten consecutive characters in a string. For example the string in red below will return true
"Hi this string willlllllllll return true"
I also need a regex if a string has ten or more the same tokens anywhere in a string. For example the string in red below will return true
"this string will return will true will will this string will will will will will true will hi will"
as the string above has ten the word will in it, it will (excuse the pun) return true.
I am aware that this may be able to be done in other ways like $findtok etc. but i do think a cleverly written regex will be more efficient.
I need a regex that will return true if there are more then ten consecutive characters in a string. For example the string in red below will return true
"Hi this string willlllllllll return true"
I also need a regex if a string has ten or more the same tokens anywhere in a string. For example the string in red below will return true
"this string will return will true will will this string will will will will will true will hi will"
as the string above has ten the word will in it, it will (excuse the pun) return true.
I am aware that this may be able to be done in other ways like $findtok etc. but i do think a cleverly written regex will be more efficient.