On Wednesday 06 November 2002 5:01 pm, Lars Gullik Bjønnes wrote:
> John Levon <[EMAIL PROTECTED]> writes:
> | On Wed, Nov 06, 2002 at 04:43:28PM +0100, Lars Gullik Bjønnes wrote:
> >> find . -name b
> |
> | um, that's a shell (glob) pattern
>
> (I know, but anyway...)
>
> | Contrast with grep, which /does/ take a regexp (and, unsurprisingly,
> | ^And works just fine there).
>
> But anyway:
>
> for those of you not reading doc: from the boost doc on regex_match:
>
> "note that the result is true only if the expression matches the whole
> of the input sequence,"
>
>
> But there is also a wrapper class for all this regex stuff:
> boost::RegEx.
>
> boost::RegEx regex("^a");
> if (regex.Search("alle sammen"))
>    std::cout << "He he! Det virket!" << std::endl;

Indeed. Note I was merely saying that the effect of the current code was to 
change the behaviour of the user interface detrimentally. regex_match is not 
what we wanted in this particular case. RegEx, or regex_search provide the 
desired functionality (and I've learnt a little more too!)

Angus

Reply via email to