regex error?

Q&A's, tips, howto's
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

regex error?

Post by HPW »

I get the following error.
Did it come form newLISP? (Not in the doc)

Code: Select all

(regex "*@0@*" "1@0@120" )

regular expression in function regex : "offset 0 nothing to repeat:"
What can be wrong?
Has the @ a special meaning?

(The syntax @0@... comes from a rule database from our ERP system)
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

Oops, I think I get it:

Code: Select all

> (regex ".*@0@.*" "1@0@120" )
("1@0@120" 0 7)
Anyway: Did it come form newLISP? (Not in the doc)
Hans-Peter

Locked