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;

-- 
        Lgb

Reply via email to