Boost logo

Boost Users :

From: james.jones_at_[hidden]
Date: 2006-09-08 09:39:45


From: "Richard Dingwall" <rdingwall_at_[hidden]>
> Cheers. I was rather hoping not to have to use regular expressions;
> they're kinda beyond the intended users of my program (it's for a
> user-defined filter function, and I don't expect them to be familiar
> with regex syntax).
>
> I cheaped out and used an old C wildcmp(wild.c_str(), text.c_str())
> method instead.

Just because YOU use regex internally doesn't mean to have to expose full regex capabilities to the users. You could, for example, use a */? wildcard arrangement like DOS or bash shell uses, use a regex to verify that the wildcard pattern was valid, and then translate this into a real regex for the internal search.

Use Boost!! Don't cheap-out. :)

-
James Jones Administrative Data Mgmt.
Webmaster 375 Raritan Center Pkwy, Suite A
Data Architect Edison, NJ 08837


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