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(a)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@gmail.com]
Enviado el: jueves, 13 de julio de 2006 16:54
Para: Ricardo Martinez
CC: serusers(a)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(a)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(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Greg Fausak
greg(a)thursday.com
--
Greg Fausak
greg(a)thursday.com