Re: [Tutor] Help regarding reg exp.

2016-10-05 Thread Danny Yoo
> On 05/10/16 10:03, rakesh sharma wrote: >> Hi all >> >> I have a string of pattern ({A,BC},{(A,B),(B,C)(C,A)}. > On Wed, Oct 5, 2016 at 3:14 AM, Alan Gauld via Tutor wrote: > Until we understand the data better we can't be sure > a regex is the best solution. Yes, I agree with Alan: we need t

Re: [Tutor] please help me modify this code so that I can utilize raw_input

2016-10-05 Thread Oscar Benjamin
On 4 October 2016 at 19:11, Alan Gauld via Tutor wrote: >> """Define a function sum() and a function multiply() that sums and >> multiplies (respectively) all the numbers in a list of numbers. For >> example, sum([1, 2, 3, 4]) should return 10, and multiply([1, 2, 3, 4]) >> should return 24.""" >

Re: [Tutor] Help regarding reg exp.

2016-10-05 Thread Alan Gauld via Tutor
On 05/10/16 10:03, rakesh sharma wrote: > Hi all > > I have a string of pattern ({A,BC},{(A,B),(B,C)(C,A)}. I'm not sure what you mean, can you send some real examples of the data rather than just a generic pattern? For example what do A,B and C signify? Are they literals? Are they uppercase le

[Tutor] Help regarding reg exp.

2016-10-05 Thread rakesh sharma
Hi all I have a string of pattern ({A,BC},{(A,B),(B,C)(C,A)}. I want to extract the inner brackets {A,B,C} etc. Please help. I have tried various methods of re to no avail. Get Outlook for Android ___ Tutor maillist - Tutor@p

Re: [Tutor] remove ^ in field

2016-10-05 Thread Alan Gauld via Tutor
On 04/10/16 20:14, PERRAS Pierre wrote: > Hi, > > Sending lab result in HL7. You need to give us much more information. Do not assume we know what HL7 is, I certainly don't. Also this is a text list and attachments are usually stripped off, so if you sent something it didn't get through. > In t