Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74327
| References | <cfa25009-b200-4fcc-beb7-83634546cd20@googlegroups.com> |
|---|---|
| Date | 2014-07-10 14:12 -0400 |
| Subject | Re: I am confused about ' and " |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11741.1405015938.18130.python-list@python.org> (permalink) |
On Thu, Jul 10, 2014 at 1:01 PM, fl <rxjwg98@gmail.com> wrote: > Hi, > > It is still in the Regular expression operations concept, this link: You must have missed my comment about quote and double quote. In python you can write a string using either. Just make sure if you start with double quote, you must end with double quote. Before tackling regular expressions, go to the python tutorial and learn about strings. > > 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, > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I am confused about ' and " fl <rxjwg98@gmail.com> - 2014-07-10 10:01 -0700 Re: I am confused about ' and " John Gordon <gordon@panix.com> - 2014-07-10 17:16 +0000 Re: I am confused about ' and " Chris Angelico <rosuav@gmail.com> - 2014-07-11 03:57 +1000 Re: I am confused about ' and " Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-10 14:12 -0400 Re: I am confused about ' and " Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-10 20:25 +0200
csiph-web