Script Languages Synopsis/String/regexp

From Wikibooks, open books for an open world
< Script Languages Synopsis
Jump to: navigation, search

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.