> I'm trying to learn regex but since I've spent way too much time on the
> following "simple" case, there's obviously something I'm missing. I need to
[quoted text clipped - 13 lines]
> that are causing me the problems. I've tried all kinds of combinations that
> I won't bore you with but obviously none have been completely correct.
Did you try this:
\(([^)]*\bthe\b.*?\)
> And two more things... I've got both "RegexBuddy" and "Rad Software Regular
> Expression Designer 1.4", which I've been using to help me wade through all
> this. Do any of you have any other tools you would recommend for this
> purpose, or a preference between these two? Also, does anyone know of a tool
I'm using RegexTester, which can be downloaded from:
http://www.unibetter.com/deerchao/downloads/RegexTester.zip
It's very light weight, and uses .Net Regex Engieen, and that's all
the reason why I use it.
> that would allow me to state what I would like to achieve as an English
> sentence, and would then produce a regex for it? (I know, keep dreaming! :-))
>
> Thanks
> Ray
So I guess you do know that's a dream :)
I think RegexBuddy is one of the closest tools to that dream.
Ray Mitchell - 14 Oct 2007 19:17 GMT
> > I'm trying to learn regex but since I've spent way too much time on the
> > following "simple" case, there's obviously something I'm missing. I need to
[quoted text clipped - 35 lines]
> So I guess you do know that's a dream :)
> I think RegexBuddy is one of the closest tools to that dream.
deerchao,
Yup, that's it. It was the lack of the question mark that was my problem.
Obviously I need to learn a little bit more about "greedy" v.s. "stingy", and
to think of how much time I wasted on this! Thanks for your help!
Ray
On Oct 14, 12:43 am, Ray Mitchell
<RayMitchell_NOSP...@MeanOldTeacher.com> wrote:
> And two more things... I've got both "RegexBuddy" and "Rad Software Regular
> Expression Designer 1.4", which I've been using to help me wade through all
> this. Do any of you have any other tools you would recommend for this
> purpose, or a preference between these two?
I love Expresso.