Re: I am confused about ' and "

2014-07-10 Thread Chris “Kwpolska” Warrick
On Jul 10, 2014 7:53 PM, "fl" wrote: > > 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

Re: I am confused about ' and "

2014-07-10 Thread Joel Goldstick
On Thu, Jul 10, 2014 at 1:01 PM, fl 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

Re: I am confused about ' and "

2014-07-10 Thread Chris Angelico
On Fri, Jul 11, 2014 at 3:01 AM, fl wrote: > Please tell me because I have looked it around for one hour about it. > It's high time you started at the beginning, rather than trying to learn regexps without understanding Python. https://docs.python.org/3/tutorial/index.html Start there. You will

Re: I am confused about ' and "

2014-07-10 Thread John Gordon
In fl writes: > Please tell me because I have looked it around for one hour about it. There is no difference between ' and " when used to enclose strings, with one exception: a double-quoted string can contain single-quotes without the need to escape them with a backslash, and vice-versa. For

I am confused about ' and "

2014-07-10 Thread fl
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*"