[Serusers] Reg Exp?

Greg Fausak lgfausak at gmail.com
Thu Jul 13 23:11:43 CEST 2006


no idea, but, i would guess that it means that
the pattern you look for doesn't exist.  I'm not sure you can get away
with an anchor, because I think you have the whole packet to
compare to, so ^ wouldn't make sense. Try leaving out the ^Call-ID:
and just search for the pattern.

search() does work.  I think there is also a replace(), which I
use in some scripts.

good luck,

-g


On 7/13/06, Ricardo Martinez <rmartinez at redvoiss.net> wrote:
> Hello Greg
> Thanks for your answer.
> i have this  :
>         if (!search("^Call-ID: [0-9A-F](8)-[0-9A-F](4)-[0-9A-F](4)-[0-9A-F](4)-[0-9A-F](12)")) {
>
> but it seems not to be working..
> any idea?
>
> Thanks
>
> Ricardo.-
>
> -----Mensaje original-----
> De: Greg Fausak [mailto:lgfausak at gmail.com]
> Enviado el: jueves, 13 de julio de 2006 16:54
> Para: Ricardo Martinez
> CC: serusers at lists.iptel.org
> Asunto: Re: [Serusers] Reg Exp?
>
>
> How about:
>
> [0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}
>
> -g
>
> On 7/13/06, Ricardo Martinez <rmartinez at redvoiss.net> wrote:
> >
> >
> >
> > Hello List.
> >  I'm trying to build a regular expresion that match the next line :
> > Param1 : E384AFC2-529C-4AA1-AE16-273A3C7DD889
> > I mean : [8 characters from 0 to 9 and A to D]-[4 characters from 0 to 9 and
> > A to D]-[4 characters from 0 to 9 and A to D]-[4 characters from 0 to 9 and
> > A to D]-[12 characters from 0 to 9 and A to D]
> >
> > Any help?
> > The textops regexp are like the "linux vi" regexp?
> > Thanks
> > Ricardo Martinez.-
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
> >
>
>
> --
> Greg Fausak
> greg at thursday.com
>


-- 
Greg Fausak
greg at thursday.com



More information about the sr-users mailing list