Re: [Boost-users] [string_algo] wildcard support?
From: "Richard Dingwall"
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
participants (1)
-
james.jonesīŧ firstinvestors.com