My contemplations and diurnal novelties are publicized here


Basically, a regular expression is a pattern describing a certain amount of text. Their name comes from the mathematical theory on which they are based. Regular Expression help you search/find specific part inside a particular sentence.

Starting with them most easy example:-
\btest\b

This will match the exact test string. Here \b is used as word boundary.
So you are done with your first example.

Advertisements

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: