[Serusers] Reg Exp?

Ricardo Martinez rmartinez at redvoiss.net
Thu Jul 13 23:08:29 CEST 2006


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



More information about the sr-users mailing list