Bo Peng wrote:
> > How about that?
>
> This still works.

I committed this (minus the change to the "File: " regex) to trunk.

Now I have a question to the regex masters:

Why is it that neither the original regex
static regex reg2("File: ([^ ]+).*");
nor my space-friendly version
static regex reg2("File: ([^\\.]+\\.+[^ ]+).*");
finds one of the following two lines:

File: 0_home_juergen_test_New_Folder_hsa_bh.jpg Graphic file (type jpg)
File: /home/juergen/test/New Folder/hsa bh.jpg Graphic file (type jpg)

even though something like
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex

is found?

What irritates me is that all these lines are found if I use the above regexes 
in my editor.

Jürgen

Reply via email to