Anders Norrbring wrote:
McDonald, Dan skrev:
why are you trying to match up to 74 "beginning of bodies" (^) or
whitespaces (\s) between "at" and "only"?  Perhaps you want \S{,74},
which would be up to 74 "non-whitespace" characters.

I just copied Kris' ruleset without thinking much of it. And my interpretation of the regexp is "between 0 and 74 of non-whitespace characters".

Exactly. I found one of the new variants in my own inbox this morning and played with it a bit to see why that rule wasn't hitting; changing {,74} to {10,74} fixed it. *shrug* Not sure why, really.

Dan McDonald's suggestion to use \S instead of [^\s] shouldn't change the meaning, but it *does* make the regex a little shorter and somewhat easier to read.

-kgd

Reply via email to