Re: Simple Regex Question

2010-08-22 Thread CuppoJava
Haha. No I'm not trying to solve the correspondence problem. I'm writing a simple parser for a toy language that I'm working on. Thanks for everyone's help! -Patrick On Aug 22, 4:34 am, Luka Stojanovic wrote: > On Sunday 22 August 2010 01:11:38 CuppoJava wrote: > > > > > > > Hi Everyone, > > >

Re: Simple Regex Question

2010-08-22 Thread Luka Stojanovic
On Sunday 22 August 2010 01:11:38 CuppoJava wrote: > Hi Everyone, > > I'm extremely stuck on this simple regex question, which I'm sure > someone with a little more experience will be able to write in a > second. I would really appreciate the help. > > Given a string consisting of a's, b's, and s

Re: Simple Regex Question

2010-08-21 Thread David Sletten
Does this make the processing a little clearer? #"(?<=([ ab]))?([ab])\2*" Have all good days, David Sletten On Aug 21, 2010, at 10:02 PM, CuppoJava wrote: > Wow that's so short! Thanks Chouser! I will abstain from showing the > awful hack that I've been working with currently. > -Patrick > > O

Re: Simple Regex Question

2010-08-21 Thread CuppoJava
Wow that's so short! Thanks Chouser! I will abstain from showing the awful hack that I've been working with currently. -Patrick On Aug 21, 8:45 pm, Chouser wrote: > On Sat, Aug 21, 2010 at 7:11 PM, CuppoJava wrote: > > Hi Everyone, > > > I'm extremely stuck on this simple regex question, which

Re: Simple Regex Question

2010-08-21 Thread Chouser
On Sat, Aug 21, 2010 at 7:11 PM, CuppoJava wrote: > Hi Everyone, > > I'm extremely stuck on this simple regex question, which I'm sure > someone with a little more experience will be able to write in a > second. I would really appreciate the help. > > Given a string consisting of a's, b's, and spa