
13 Feb
2008
13 Feb
'08
6:53 p.m.
Hi, I'try to build a regex for an ibis file, the line I'm interested looks like: [IBIS Ver] 3.2 | Used for template variations" where '|' is an optional comment identifier with the (therefore optional) comments follows. I'm interested in the version self: "3.2" to create a parser using a factory. Using egrep '^\[IBIS Ver]' success. From docs I tested the dynamic regex $ perl -p -e '(\\w+) (\\w+)!' "Hello World" which fails (syntax error at -e line 1, near "+) ") The regex are perl syntax, isn't? What is the regex for my IBIS Ver identifier? Thanks, Olaf