[Freeswitch-users] RegEx Help

Frank Carmickle frank at carmickle.com
Mon Nov 9 13:03:43 PST 2009


On Mon, Nov 09, Michael Collins wrote:
> On Mon, Nov 9, 2009 at 12:22 PM, Dave Stevenson
> <stevendt at primrosebank.net>wrote:
> 
> >  I **think** that the following will match any three character strings
> > from 1xx to 399
> >
> > I want to exclude 100 though, can anyone help me with the required RegEx
> > please ?
> >
> >
> > ^([1-3][0-9][0-9])$
> >
> > I could (I think) do
> >
> > ^([1-3][1-9][0-9]|[2-3][0-9][0-9])$

You mean

(^1[0-9][1-9]$|^[2-3]\d\d$)

--FC




More information about the FreeSWITCH-users mailing list