From: Lucky Nl Date: 2012-04-05T13:34:35+09:00 Subject: Re: regularexpression for check specialchars Brian Candler wrote in post #1055059: > Try looking at character classes > > [[:print:]] > [[:graph:]] > > and their negations > > [^[:print:]] > [^[:graph:]] I mean anyspecialchars like !@#$%^&*()_+,./: I have one variable for example message = "hello" Here message contains only characters message="@#$%^" In this case i have only specialchars I want to check the case like these -- Posted via http://www.ruby-forum.com/.