It is currently March 28th, 2024, 5:43 pm

Substiution error

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
Codger
Posts: 97
Joined: May 29th, 2017, 3:16 pm

Substiution error

Post by Codger »

I've decided to start over and rework the skin from scratch.

In the following measure [ReallyOnline] returns a whole number 0 or greater. That is working fine.

I have a very poor grasp of regex and am getting a invalid substitute error but don't see why.

Code: Select all

[IsOnline]
Measure=String
String=[ReallyOnline]
RegExpSubstitute=1
Substitute="^[!^0]":Online,^[^0]:Offline
DynamicVariables=1
User avatar
Codger
Posts: 97
Joined: May 29th, 2017, 3:16 pm

Re: Substiution error

Post by Codger »

dvo wrote:

Code: Select all

Substitute="^[!^0]":"Online","^[^0]":"Offline"
missing some " " here and there? :D
Thank you. I thought I tried that but must have messed it up when I did. I see the logic of requiring the quotes in Regex mode. Makes sense now. Complete simple skin works now.
Post Reply