REGEXP: Creating character classes

B

basi

Hello,
I'm unable to find a way to create character classes. How might one
create the following classes:

[[:consonants]]
[[:vowels]

There are other classes that will be useful in my project (nasals,
dentals, etc.), but I should be able to create them once I get to know
how to create one.

Thank you for your help.
basi
 
A

Austin Ziegler

Hello,
I'm unable to find a way to create character classes. How might one
create the following classes:
=20
[[:consonants]]
[[:vowels]
=20
There are other classes that will be useful in my project (nasals,
dentals, etc.), but I should be able to create them once I get to know
how to create one.

See my other post, but you can't create custom character classes in
the default Ruby regexp engine. I don't know if you can in Oniguruma.
However, you can include other regexen in your regexes.

-austin
--=20
Austin Ziegler * (e-mail address removed)
* Alternate: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top