in reply to Re: Re: Abusing Regular Expressions
in thread Abusing Regular Expressions

Reading your description, I tend to agree with you, but then I'm a known regex abuser anyway:)

If you posted a small example of the task you want to solve, it would be fun to compare solutions.

Minor nit: Shouldn't your first example be

/(foo)+ #<<? (bar)? (bif){3,5} /x;

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.

Replies are listed 'Best First'.
Re: Re: Re: Re: Abusing Regular Expressions
by samtregar (Abbot) on Sep 27, 2003 at 20:23 UTC
    If you posted a small example of the task you want to solve, it would be fun to compare solutions.

    Hmmm. XML Schema has a way of defying small meaninful examples. Very simple schemas can be easily processed with simple techniques. The kind of thing appropriate for a regex might take 20-30 lines of knotty XML to express.

    Minor nit

    Right you are. Fortunately my regex-generator doesn't make mistakes like that...

    -sam