Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:22:04+00:00 2026-05-25T22:22:04+00:00

I am trying to learn regular expression. I have L = {a, b, x,

  • 0

I am trying to learn regular expression. I have

L = {a, b, x, y, z, i, o, u, e, c}

I want to construct a regular expression that describes a strings that contain the five vowels in alphabetical order (aeiou). All strings will have at least one of all five vowels.

Do I have to lay them out in order as they are in the set? like

a(b*x*y*z*i*o*u*ec*)iou

or can I mix them up like:

aeiou(b*x*y*z*c*)

Since, they are not in order in the set, does that mean the first solution is what I am looking for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:22:05+00:00Added an answer on May 25, 2026 at 10:22 pm

    In most regex languages, you’ll need something like:

    [^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*
    

    That much is essentially uniform. You then have to deal with ‘start of word’ and ‘end of word’ issues, which depend on the context and the regex language. With one word per line, you can simply use ‘^‘ to start and ‘$‘.


    Using your preferred notation and knowing that the complete alphabet used consists of the 10 letters, and assuming you can do grouping, then you can write:

    (b*c*x*y*z*)*a(b*c*x*y*z*)*e(b*c*x*y*z*)*i(b*c*x*y*z*)*i(b*c*x*y*z*)*u(b*c*x*y*z*)*
    

    The (b*c*x*y*z*)* part says zero or more repeats of “zero or more b’s followed by zero or more c’s, …, followed by zero or more z’s”. This does what you require; but it also demonstrates why character class notation is such a good idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to learn more about regular expressions I have one below that
I'm trying to learn some basic regular expression and having a hard time getting
I'm trying to learn Parsec by implementing a small regular expression parser. In BNF,
I'm new to regular expressions, but I'm trying to learn about it. I want
Trying to learn jquery here so I took a regular javascript snippet that loops
I am trying to write a regular expression that will match a string that
Trying to learn Regex in Python to find words that have consecutive vowel-consonant or
I'm trying to learn regular expression, because I can't do without them. So, this
While trying to learn a little more about regular expressions, a tutorial suggested that
Trying to learn a bit of CSS and I want a horizontal navbar and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.