[Users] regexp problem

Klaus Darilion klaus.mailinglists at pernau.at
Thu Aug 4 11:57:12 CEST 2005


Hi!

I have a problem with search();
I try to match a contact header with IP address:

  if !(search("Contact:.*@[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:")) {
works fine, whereas
  if !(search("Contact:.*@[0-9]+\.[0-9]+\.[0-9]+\.\d+:")) {
does not work.                                   ^^

Looks like search() does not like \d
Are there any known limitations for the regular expressions?


regards
klaus




More information about the Users mailing list