Boost logo

Boost Users :

From: Michael Radzewitz (m.radzewitz_at_[hidden])
Date: 2007-02-24 06:54:08


Hello everyone,

i have a problem with libboost_regex-gcc-mt-1_33_1.a on a debian Linux
and a simple function to test some Names:

bool is_valid_name(const char *s)
 {
 if(!s)
  return false;

 const char* re = "^[a-zA-Z][.*0-9a-zA-Z._-]{4,60}$";

 static const boost::regex e(re);
 return regex_match(s,e);
 }

 
Everything works well when i put this Funtion in a simple Programm
and run it.
When I put the same Function in my cgi which is wrapped through
fastCgi and handled by an apache webserver i get the following
Error message:

Invalid content of repeat range

so in a simple programm the range check {4,60} in boost regex works
but in a more complex program it didd'nt.

I have testet the same function on Linux using: libboost_regex-gcc-mt-1_33_1.a
and free BSD using: libboost_regex.so.3 and get with both libs the same
error message.

It would be nice if someone can help me find a solution or tell me what
went wrong here.

Thanks in advance!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net