Re: boost::regex woes

2002-11-06 Thread Angus Leeming
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, whi

Re: boost::regex woes

2002-11-06 Thread John Levon
On Wed, Nov 06, 2002 at 06:01:32PM +0100, Lars Gullik Bjønnes wrote: > But there is also a wrapper class for all this regex stuff: > boost::RegEx. > > boost::RegEx regex("^a"); OK, neat. regards john

Re: boost::regex woes

2002-11-06 Thread Lars Gullik Bjønnes
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). B

Re: boost::regex woes

2002-11-06 Thread John Levon
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 Contrast with grep, which /does/ take a regexp (and, unsurprisingly, ^And works just fine there). regards john -- "When a man has nothing to say, the worst thing he can do i

Re: boost::regex woes

2002-11-06 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | The old code used to succeed with a partial match. This will give us the old | behaviour back: Ok, great. -- Lgb

Re: boost::regex woes

2002-11-06 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, Nov 06, 2002 at 04:17:14PM +0100, Lars Gullik Bjønnes wrote: > >> >> | Regex search pattern: ^And >> >> >> >> try this: "^And.*" >> > >> | Thank you, Lars. Is there a flag I can pass to boost::regex_match that >> | enables "^And" to succeed? Not bo

Re: boost::regex woes

2002-11-06 Thread Angus Leeming
On Wednesday 06 November 2002 3:17 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | On Wednesday 06 November 2002 2:37 pm, Lars Gullik Bjønnes wrote: > >> Angus Leeming <[EMAIL PROTECTED]> writes: > >> | Lars, I'd value some help. > >> | > >> | Attached is a small test

Re: boost::regex woes

2002-11-06 Thread John Levon
On Wed, Nov 06, 2002 at 04:17:14PM +0100, Lars Gullik Bjønnes wrote: > >> | Regex search pattern: ^And > >> > >> try this: "^And.*" > > > | Thank you, Lars. Is there a flag I can pass to boost::regex_match that > | enables "^And" to succeed? Not boost::match_any anyway. > > That is not really ho

Re: boost::regex woes

2002-11-06 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Wednesday 06 November 2002 2:37 pm, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | Lars, I'd value some help. >> | >> | Attached is a small test code for the boost regex code. > >> | Regex search pattern: ^And >> >> try t

Re: boost::regex woes

2002-11-06 Thread Angus Leeming
On Wednesday 06 November 2002 2:37 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | Lars, I'd value some help. > | > | Attached is a small test code for the boost regex code. > | Regex search pattern: ^And > > try this: "^And.*" Thank you, Lars. Is there a flag I can

Re: boost::regex woes

2002-11-06 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars, I'd value some help. > | Attached is a small test code for the boost regex code. Does not compile... I fixed it... (add iostream) | The grand old duke of York | He had ten thousand men | He marched them up to the top of the hill | And he marched