in reply to Regex matching words with numbers, but not numbers.

If you have access to Perl version 5.18+ (I have not ATM), you may find the experimental Extended Bracketed Character Classes provide some food for thought. I'm not sure just how they would apply to your problem as originally stated (and as I say, I couldn't test any application if I could see one), but they look really interesting...

  • Comment on Re: Regex matching words with numbers, but not numbers.

Replies are listed 'Best First'.
Re^2: Regex matching words with numbers, but not numbers.
by Anonymous Monk on Jul 27, 2014 at 03:34 UTC
    Hmm, even the extended character classes are just that, sets, they cannot have mandatory and optional parts, just like 1 matches 1 it can't sometimes optionally match 4, its 1 :) the options are in the set or not in the set ... the extended classes just let you define your sets easier