Jump to content

Script Languages Synopsis/String/regexp

From Wikibooks, open books for an open world

Python:

There is nothing like a =~ operator. Use either the regex module (cf. http://www.amk.ca/python/howto/regex/), or a string function. Often, the string's .find() method will do.