Is there a way to make a user defined character class, for instance, should I want to find words like "did" that are consonant, vowel, consonant, I could do this:
print "CVC word found : $1\n" if (/\b([b-df-hj-np-tv-z][aeiouy][b-df-hj-np-tv-z])\b/i);
But I'd prefer (esp. in more complicate examples) to do something like:
print "CVC word found : $1\n" if (/\b([:consonant][:vowel][:consonant])\b/i);
Thank you