Another way instead of escaping regex patterns?

Viewed 20323

Usually when my regex patterns look like this:

http://www.microsoft.com/

Then i have to escape it like this:

string.match(/http:\/\/www\.microsoft\.com\//)

Is there another way instead of escaping it like that?

I want to be able to just use it like this http://www.microsoft.com, cause I don't want to escape all the special characters in all my patterns.

5 Answers
Related