python Programming Glossary: string_with_newlines
What is the difference between Python's re.search and re.match? http://stackoverflow.com/questions/180986/what-is-the-difference-between-pythons-re-search-and-re-match Now enough talk. Time to some example code # example code string_with_newlines something someotherthing import re print re.match 'some' string_with_newlines.. something someotherthing import re print re.match 'some' string_with_newlines # matches print re.match 'someother' string_with_newlines #.. string_with_newlines # matches print re.match 'someother' string_with_newlines # won't match print re.match '^someother' string_with_newlines..
|