What $ (Dollar) means in Regular Expressions?

When working with MEL, everybody knows that $ means to declare a variable, but when it’s included in a string what it does?

It simply check the strings(characters) before the dollar sign in the ending of the second strings.

Or as Jeffry Friedl mentions in his book:

The $ (Dollar) the position at the end of the line

Therefore let’s check the following script in MEL:

 

string $testString = “This is a test string”;

match “string$” $testString;

 

We have now learnt how to use $ in regExp!!

 

mostafatalebi@rocketmail.com

artixel.wordpress.com

 

 

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