jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

regex bug in jed


Hi!

With the following dfa expression:

dfa_define_highlight_rule ("[0-9]+.[0-9]+.[0-9]+.[0-9]+(/[0-9]+)?","preprocess",name);

jed will match both

1-2-3-4

and

1.2.3.4

With the following dfa expression:

dfa_define_highlight_rule ("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(/[0-9]+)?","preprocess",name);

jed will also match both above cases.

So there is no way to specify a literal . (dot) :P

-- 

Regards
 Abraham

Life is one long struggle in the dark.
		-- Titus Lucretius Carus

___________________________________________________
 Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks
 P.O. Box 3472, Matieland, Stellenbosch, 7602
 Cell: +27 82 565 4451 Http: http://www.frogfoot.net
 Email: abz@xxxxxxxxxxxx

Attachment: pgpNDnE8h7syQ.pgp
Description: PGP signature


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]