I am confused about ' and "

fl rxjwg98 at gmail.com
Thu Jul 10 19:01:39 CEST 2014


Hi,

It is still in the Regular expression operations concept, this link:

has example using single quote mark: '

https://docs.python.org/2/library/re.html#re.split


While in this link:

https://docs.python.org/3/howto/regex.html


It gives table with quote: "

Regular String	Raw string
"ab*"	r"ab*"
"\\\\section"	r"\\section"
"\\w+\\s+\\1"	r"\w+\s+\1"


and link:

https://docs.python.org/2/library/re.html


m = re.match(r"(\w+) (\w+)", "Isaac Newton, physicist")


Please tell me because I have looked it around for one hour about it.

Thanks,



More information about the Python-list mailing list