Specifying a case-insensitive rule for a regex algorithm
Hi! I am using boost::regex_grep() and boost::regex_search(), and I've figured out how to set a given rule to be case-insensitive when I transform it from a string into a rule -- i.e., -- boost::regex("search[[:space:]]string", boost::regbase::normal | boost::regbase::icase) This is great. But in many regular expression processing environments, you also have the option to specify case-insensitivity (or sensitivity) within the rule string itself. For instance, in Perl, you do it with the /i switch at the end of the rule string, and in some environments you can use (?i) to make the following characters case-insensitive when processed and then (?-i) to switch case sensitivity back on. I didn't see any mention of any such thing in the regex documentation. Is this option not available in boost::regex? Thanks! Amittai Aviram amittai@amittai.com
Hi! I am using boost::regex_grep() and boost::regex_search(), and I've figured out how to set a given rule to be case-insensitive when I transform it from a string into a rule -- i.e., -- boost::regex("search[[:space:]]string", boost::regbase::normal | boost::regbase::icase) This is great. But in many regular expression processing environments, you also have the option to specify case-insensitivity (or sensitivity) within the rule string itself. For instance, in Perl, you do it with the /i switch at the end of the rule string, and in some environments you can use (?i) to make the following characters case-insensitive when processed and then (?-i) to switch case sensitivity back on. I didn't see any mention of any such thing in the regex documentation. Is this option not available in boost::regex? Thanks!
Not at present, however you're the second person to have asked in the last couple of months, so it's moving up my long todo list :-) John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Good day to everyone, I have been monitoring boost for quite some time now, as well as stealing bits and pieces here and there. Now I want to actually start using it "as intended", on several UNIX platforms and CYGWIN. Some of those environments do not have a lot of disk space (web presence accounts). So, where would I find a small, but to-the-point tutorial, explaining the directory organization, library interdependence, etc., so that I can get the libraries I want and skip the bulky unnecessary stuff (for my projects, that is)? Any help is greatly appreciated. Leo.
At 02:06 PM 1/22/2003, Leo Landa wrote:
Good day to everyone,
I have been monitoring boost for quite some time now, as well as stealing bits and pieces here and there. Now I want to actually start using it "as intended", on several UNIX platforms and CYGWIN. Some of those environments do not have a lot of disk space (web presence accounts).
So, where would I find a small, but to-the-point tutorial, explaining the directory organization, library interdependence, etc., so that I can get the libraries I want and skip the bulky unnecessary stuff (for my projects, that is)?
Any help is greatly appreciated.
At one time we published a header dependency chart, but as Boost grew it became unwieldy and we no longer produce it. There have been past discussions on how to meet this need, and the consensus is that usually what is required is a library (rather than header) dependency analysis. This would be fairly easy to produce, using a number of Boost's own libraries, of course:-) But the holdup is that it is only a medium priority task, and lately has been pushed aside in favor of higher priority work. If someone else wants to take this one over, I'd be glad to hand it off. We want to do it entirely in C++, so any Booster can maintain it. --Beman
participants (4)
-
Amittai Aviram
-
Beman Dawes
-
John Maddock
-
Leo Landa