[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Javascript regex Q



On Tue, Oct 04, 2011 at 03:12:58PM -0700, T Elcor wrote:
> Hi,
> 
> Is there a way to write a single Javascript regex that would match all of the following three patterns:
> 
>   a.domain.tld
>   b.domain.tld
>     domain.tld/c/

/.*/

Or, perhaps you're after /domain.tld/

Either should work, though I'd expect the first to be quicker in your
case.



-- 
Darac Marjal


Reply to: