# Regular expression

**URL:** <https://community.unix.com/t/regular-expression/310469>\
**Category:** Shell Programming and Scripting\
**Created:** [May 18, 2012, 6:22pm UTC](https://community.unix.com/t/regular-expression/310469 "2012-05-18T18:22:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishrestha](https://community.unix.com/letter_avatar/nishrestha/32/6_449c533f586939b6e5f246632a46421f.png) [@nishrestha](https://community.unix.com/u/nishrestha)\
**Post date:** [May 18, 2012, 6:22pm UTC](https://community.unix.com/t/regular-expression/310469/1 "2012-05-18T18:22:25Z")

</div>

Hi

I need to write a regular expression for a language. That language can have {a, b, c} as alphabet and it must contain minimum one "a" and minimum one "b".  
Can u help me to write it plz!

thanks in advance!

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/6_449c533f586939b6e5f246632a46421f.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [May 18, 2012, 6:32pm UTC](https://community.unix.com/t/regular-expression/310469/2 "2012-05-18T18:32:53Z")

</div>

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in [this forum](http://www.unix.com/homework-coursework-questions/) under [special homework rules](http://www.unix.com/homework-coursework-questions/113751-draft-rules-homework-coursework-questions-forum.html).

Please review the [rules](http://www.unix.com/misc.php?do=cfrules), which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the [guidelines for posting homework](http://www.unix.com/homework-coursework-questions/113751-draft-rules-homework-coursework-questions-forum.html) and repost.

Thank You.

The UNIX and Linux Forums.
