Re: [Tutor] simple regex question

2016-05-02 Thread Danny Yoo
On Sun, May 1, 2016 at 9:49 AM, bruce wrote: > I've created a test regex. However, after spending time/google.. can't > quite figure out how to then get the "complete" line containing the > returned regex/pattern. > > Pretty sure this is simple, and i'm just missing something. A few people have

Re: [Tutor] simple regex question

2016-05-01 Thread Alan Gauld via Tutor
On 01/05/16 20:04, bruce wrote: > Hey all.. > > Yeah, the sample I'm dealing with is html.. I'm doing some "complex" > extraction, and i'm modifying the text to make it easier/more robust.. > > So, in this case, the ability to generate the line is what's needed > for the test.. > But as Peter expl

Re: [Tutor] simple regex question

2016-05-01 Thread Alan Gauld via Tutor
On 01/05/16 17:49, bruce wrote: > Hi. I have a chunk of text code, which has multiple lines. > s=''' > id='CourseId10795788|ACCT2081|002_005_006' style="font-weight:bold;" > onclick='ShowSeats(this);return false;' alt="Click for Class Availability" > title="Click for Class Availability">ACCT208

Re: [Tutor] simple regex question

2016-05-01 Thread Peter Otten
bruce wrote: > Hi. I have a chunk of text code, which has multiple lines. > > I'd like to do a regex, find a pattern, and in the line that matches the > pattern, mod the line. Sounds simple. > > I've created a test regex. However, after spending time/google.. can't > quite figure out how to then

[Tutor] simple regex question

2016-05-01 Thread bruce
Hi. I have a chunk of text code, which has multiple lines. I'd like to do a regex, find a pattern, and in the line that matches the pattern, mod the line. Sounds simple. I've created a test regex. However, after spending time/google.. can't quite figure out how to then get the "complete" line con