On Wed, Oct 28, 2009 at 1:24 AM, Ahmad Azizan <ahmad.azizan / gmail.com> wrote:
> Hello,
>
> I'm trying to grep some of the content from a file which contains
> character ; or { or } or "while" or "function"

This should work

/[;{}]|while|function/

use '|' or operator to separate 'while' and 'function' and place ; { }
inside the set clause [ ] for single match, make sense?

>
> Thanks in advance
>
> Ahmad Azizan,
> --
> Posted via http://www.ruby-forum.com/.
>
>



-- 
Kind Regards,
Rajinder Yadav

http://DevMentor.org

Do Good! - Share Freely, Enrich and Empower people to Transform their lives.