It is currently March 29th, 2024, 8:32 am

Substiution error

Get help with creating, editing & fixing problems with skins
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
[hr][/hr][hr][/hr]
"If you are the smartest one in the room, you are in the wrong room."
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.
[hr][/hr][hr][/hr]
"If you are the smartest one in the room, you are in the wrong room."