Re: Regex Wizards

2011-09-27 Thread Wayne Sierke
On Mon, 2011-09-26 at 22:02 -0400, grarpamp wrote: Under the ERE implementation in RELENG_8, I'm having trouble figuring out how to group and backreference this. Given a line, where: If AAA is present, CCC will be too, and B may appear in between. If AAA is not present, neither CCC or B

Re: Regex Wizards

2011-09-27 Thread Matthew Seaman
On 27/09/2011 03:02, grarpamp wrote: Under the ERE implementation in RELENG_8, I'm having trouble figuring out how to group and backreference this. Given a line, where: If AAA is present, CCC will be too, and B may appear in between. If AAA is not present, neither CCC or B will be

Re: Regex Wizards

2011-09-27 Thread joost
Under the ERE implementation in RELENG_8, I'm having trouble figuring out how to group and backreference this. Given a line, where: If AAA is present, CCC will be too, and B may appear in between. If AAA is not present, neither CCC or B will be present. is always present. Junk may be

Re: Regex Wizards

2011-09-27 Thread grarpamp
I think I'm grokking my mistake with the greedy stuff now. I'll try implementing a couple of your suggestions. Thanks guys! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send

Regex Wizards

2011-09-26 Thread grarpamp
Under the ERE implementation in RELENG_8, I'm having trouble figuring out how to group and backreference this. Given a line, where: If AAA is present, CCC will be too, and B may appear in between. If AAA is not present, neither CCC or B will be present. is always present. Junk may be