Re: [Tutor] re module

2014-08-14 Thread Danny Yoo
Hi Sunil, Don't use regular expressions for this task. Use something that knows about HTML structure. As others have noted, the Beautiful Soup or lxml libraries are probably a much better choice here. There are good reasons to avoid regexp for the task you're trying to do. For example, your re

Re: [Tutor] re module

2014-08-14 Thread Danny Yoo
On Thu, Aug 14, 2014 at 8:39 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote: > I tested it on IDLE. It works. Hi Sarma, Following up on this one. I'm pretty sure that: print re.search("https://docs.python.org/2/howto/regex.html#greedy-versus-non-greedy for why. ___

Re: [Tutor] re module

2014-08-14 Thread Albert-Jan Roskam
- On Thu, Aug 14, 2014 4:07 PM CEST Chris “Kwpolska” Warrick wrote: >On 14 Aug 2014 15:58 "Sunil Tech" wrote: >> >> Hi, >> >> I have string like >> stmt = 'Patient name: Upadhyay Shyamstyle="font-family: times new roman,times;">  Date of >birth:   08/08/1988 Issue(s)

Re: [Tutor] read cell phone's directory?

2014-08-14 Thread Chris “Kwpolska” Warrick
On 14 August 2014 17:48 "= Clayton - Tang =" wrote: > > Chris, thanks for the reply. I don't have newsgroup access, You don't need it. Use the official mailing list that is mirrored to Usenet. Main page with subscribe link: https://mail.python.org/mailman/listinfo/python-list The thread in ques

Re: [Tutor] read cell phone's directory?

2014-08-14 Thread Alan Gauld
On 14/08/14 16:48, = Clayton - Tang = wrote: Chris, thanks for the reply. I don't have newsgroup access, can you point me to some place where I can learn more? Do you have sample code I can learn from? Thanks. The main newsgroup is also available as a mailing list and can be read, for example,

Re: [Tutor] read cell phone's directory?

2014-08-14 Thread = Clayton - Tang =
Chris, thanks for the reply. I don't have newsgroup access, can you point me to some place where I can learn more? Do you have sample code I can learn from? Thanks. Clayton > On August 14, 2014 at 4:09 AM Chris “Kwpolska” Warrick > wrote: > > > On Aug 14, 2014 9:30 AM, "= Clayton - Tang ="

Re: [Tutor] Exercise to work on

2014-08-14 Thread P McCombs
On Aug 12, 2014 3:29 PM, "keith papa" wrote: > > Hi, am a newbie to python and I wondering if you guys can give me some exercise to work on. I have learned: print function , if function , strings, variables, and raw_input. The more the better Checkio.org is a game made of python coding challenges

Re: [Tutor] re module

2014-08-14 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
I tested it on IDLE. It works. regards, Sarma. On Thu, Aug 14, 2014 at 7:37 PM, Chris “Kwpolska” Warrick < kwpol...@gmail.com> wrote: > > On 14 Aug 2014 15:58 "Sunil Tech" wrote: > > > > Hi, > > > > I have string like > > stmt = 'Patient name: Upadhyay Shyam style="font-family: times new roman

Re: [Tutor] re module

2014-08-14 Thread Chris “Kwpolska” Warrick
On 14 Aug 2014 15:58 "Sunil Tech" wrote: > > Hi, > > I have string like > stmt = 'Patient name: Upadhyay Shyam  Date of birth:   08/08/1988 Issue(s) to be analyzed:  tesNurse Clinical summary:  test1 Date of injury:   12/14/2013Diagnoses:   723.4 - 300.02 - 298.3 - 780.50 - 724

[Tutor] re module

2014-08-14 Thread Sunil Tech
Hi, I have string like stmt = 'Patient name: Upadhyay Shyam  Date of birth:   08/08/1988 Issue(s) to be analyzed:  tesNurse Clinical summary:  test1 Date of injury:   12/14/2013Diagnoses:   723.4 - 300.02 - 298.3 - 780.50 - 724.4 Brachial neuritis or radiculitis nos - Generaliz

Re: [Tutor] read cell phone's directory?

2014-08-14 Thread Danny Yoo
On Wed, Aug 13, 2014 at 7:07 PM, = Clayton - Tang = wrote: > Hi all, > > I am on WIndows and have an Android cell phone running Android 4.4.4. > > When I connect the phone to my PC using a micro-USB cable, the phone appears > next to the local hard drive under "This PC" window, then I can browse t

Re: [Tutor] read cell phone's directory?

2014-08-14 Thread Chris “Kwpolska” Warrick
On Aug 14, 2014 9:30 AM, "= Clayton - Tang =" wrote: > > Hi all, > > I am on WIndows and have an Android cell phone running Android 4.4.4. > > When I connect the phone to my PC using a micro-USB cable, the phone appears next to the local hard drive under "This PC" window, then I can browse the pho

[Tutor] read cell phone's directory?

2014-08-14 Thread = Clayton - Tang =
Hi all, I am on WIndows and have an Android cell phone running Android 4.4.4. When I connect the phone to my PC using a micro-USB cable, the phone appears next to the local hard drive under "This PC" window, then I can browse the phone's directory like a regular disk. My goal is to find all the p