Programming & Design
Question:
Regular Expressions question?
?
2010-05-21 10:13:34 UTC
Does anyone know how to write a regular expression to match a word containing all the vowels (a,e,i,o,u) in order?
Three answers:
American Born Hindu
2010-05-21 10:15:23 UTC
Thats going to be really tough man.
peteams
2010-05-21 21:56:52 UTC
Ignoreing word boundaries and casing - just because it makes it even more of a mess - and using the most common forms, perhaps:
[a-z]*a[a-z]*e[a-z]*i[a-z]o[a-z]*u[a-z]*
Hmmm
2010-05-25 05:20:56 UTC
It depends on the language/tool you're using, but this pattern will work with most good regex tools:
\b\w*a\w*e\w*i\w*o\w*u\w*\b
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...