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 them down again
| And when they were up they were up
| And when they were down they were down
| And when they were only half way up
| They were neither up nor down
>
| Regex search pattern: ^And

try this: "^And.*"

| Searching for "^And"
| Not found!
>
| Program exited normally.
| (gdb)
>
| Looks like a perfectly valid RE to me that should find "And he marched...".
>
| I'm also unhappy about the fact that the documentation says that invalid REs 
| always throw an exception when they are created, yet I cannot find a function 
| to test whether the pattern is valid or not. Ie, I'm forced to use a try 
| block if the user is inputting the RE from the command line.

I hope you didn't use the lyx boost to compile with... we turn off
exceptions.

-- 
        Lgb


Reply via email to