[Serusers] search string, circumflex

Che Sosa che.sosa at gmail.com
Wed Apr 20 09:25:04 CEST 2005


Hello list,
I am not so familiar with C syntax but I suspect that the circumflex
changes the parsing method. What is the difference between these two:

first-> search("^(Contact|m): .*@(192\.168\.|10\.|172\.16)")
second-> search("(From|f):.*@foo.bar")

Questions:
1. How does the circumflex affect the string inside ( )
2. How is ( ) used?

Thanks,
Che




More information about the sr-users mailing list