[messages] [Technical Support & Bugs] Regular expression not working

Brent Easton b.easton at exemail.com.au
Mon Sep 5 00:46:19 CEST 2016


Regular Expressions work on Strings, so the correct syntax is

{GetProperty("Token 1_Level")=~"1|3|5|7|9"}

In your version, the expression evaluator is trying to evaluate 1|3 and 
not making any sense of it.

Rgds.

On 3/09/2016 6:56 PM, greenknight wrote:
> According to the design guide, this should be a valid expression:
>
> {GetProperty("Token 1_Level")=~1|3|5|7|9}
>
> But I only get this:
>
> - Bad Data in Module: Expression evaluation error
> Expression={GetProperty("Token 1_Level")=~1|3|5|7|9}, Error= inline
> evaluation of: ``_xyzzy=_plugh();'' internal Error: Unimplemented binary
> integer operator
>
> Weird, huh?
>
> I just want to check if Token 1_Level is equal to any one of 1,3,5,7,
> and 9.
>
> _______________________________________________
> Read this topic online here:
> http://www.vassalengine.org/forum/viewtopic.php?p=52065#p52065
> _______________________________________________
> messages mailing list
> messages at vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7752 / Virus Database: 4649/12935 - Release Date: 
> 09/03/16
>
>


-- 
____________________________________________________________
Brent Easton
Analyst/Programmer
Western Sydney University
Email: b.easton at exemail.com.au



More information about the messages mailing list