Too scared to use Regexp!!!!!!!

Regexp

The RegExp class lets you work with regular expressions, which are patterns that you can use to perform searches in strings and to replace text in strings.

You can create a new RegExp object by using the new RegExp() constructor or by assigning a RegExp literal to a variable:

var pattern1:RegExp = new RegExp(“test-\\d”, “i”);
var pattern2:RegExp = /test-\d/i;

You can see the long series of words arranged in some confusing manner, that is called as Regexp.I found a very simple and interesting article on understanding Regexp as fresher.
BreakingItDown

After reading above article I lost mine confusion about the ‘^’,’$’,'[]’,’/’.

Now what?
Create the flex application and use it.
I also want to introduce Regexp Explorer. It has collection of Regex expression for Telephone,pincode,name,etc.
Also you can create and test by inputting the syntax and value.
Try it!

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: