Create account / Log in

Regular Expression Error

Issues with the Vassal engine.

Moderators: Tim M, uckelman

Regular Expression Error

Postby twenck » June 8th, 2018, 5:37 pm

In a Game Piece Inventory the following show pieces property filter:

{CurrentBoard!~"Allied Eliminated Box"|"Axis Eliminated Box"|"Neutral Eliminated Box"}

gives the error "WARN VASSAL.tools.ErrorDialog - Expression evaluation error: Expression={CurrentBoard!~"Allied Eliminated Box"|"Axis Eliminated Box"|"Neutral Eliminated Box"}, Error= inline evaluation of: ``_xyzzy=_plugh();'' internal Error: Unimplemented binary String operator

While the following expression works correctly:

CurrentBoard!="Allied Eliminated Box"&&CurrentBoard!="Axis Eliminated Box"&&CurrentBoard!="Neutral Eliminated Box"}

What am I doing wrong in the regular expression?


Tom
twenck
 
Posts: 16
Joined: October 27th, 2017, 11:15 pm

Re: Regular Expression Error

Postby JoelCFC25 » June 8th, 2018, 7:13 pm

Try this:

{CurrentBoard!~"Allied Eliminated Box|Axis Eliminated Box|Neutral Eliminated Box"}
JoelCFC25
 
Posts: 435
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN

Re: Regular Expression Error

Postby twenck » June 10th, 2018, 3:39 pm

Thank you very much for responding. (The majority of my questions on this forum have never had a response at all.)

Unfortunately, your suggested syntax yields the exact same error, even though the Expression Builder gives a green check (which it did on my initial syntax anyway.)
twenck
 
Posts: 16
Joined: October 27th, 2017, 11:15 pm

Re: Regular Expression Error

Postby Brent Easton » June 11th, 2018, 9:37 pm

Make sure that you are using Version 3.2.17. Regular Expression checking was accidentally missed out from {} expressions in prior versions.
User avatar
Brent Easton
 
Posts: 2736
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: Regular Expression Error

Postby twenck » June 14th, 2018, 2:07 pm

I am using 3.2.17.

Still not working.
twenck
 
Posts: 16
Joined: October 27th, 2017, 11:15 pm


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 1 guest