Re: OT: Javascript regex Q
On 10/05/2011 10:39 AM, T Elcor wrote:
> I had similar idea
> (a\.|b\.|)domain\.tld(|/c/)
> but just like your regex it would block the whole domain.tld as well, which isn't what I want.
I overlooked that.
Well, ([ab]\.domain.tld)|(domain.tld/c/)
should work and is one regexp, but it is ugly. I'd use two separate
ones, one for matching things at the beginning and one for things at the
end.
--
FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #21
A: Dr. Livingston I. Presume.
Q: What's Dr. Presume's full name?
Eduardo M KALINOWSKI
eduardo@kalinowski.com.br
Reply to: