# How to frame the regular expression for special characters

**URL:** <https://www.ruby-forum.com/t/how-to-frame-the-regular-expression-for-special-characters/147099>\
**Category:** Rails\
**Created:** [August 28, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/how-to-frame-the-regular-expression-for-special-characters/147099 "2008-08-28T13:35:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![palani](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed655f/32.png) [@palani](https://www.ruby-forum.com/u/palani)\
**Post date:** [August 28, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/how-to-frame-the-regular-expression-for-special-characters/147099/1 "2008-08-28T13:35:31Z")

</div>

Hi,  
I am newbie to ruby … how to frame the regular expression for  
special character like ~,@,#,%,\*,& etc… If user enter any one of these  
character i should validate these type of character by manaually.please  
any one help me
