Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RegEx description location?
#1
Trying to figure out which document the reg ex description is in. I want to use it to chop up a variable and trigger an action if the first 2 characters are FL .Where is that writeup?
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#2
You can't use the regex stuff for that. It doesn't support that advanced capability of pulling out bits of the value based on the pattern. An it would be really overly heavy for what you are wanting to do. It would be easier to just see if it starts with FL. Use the System::StartsWith() command to do that easily and lightly.
Dean Roddey
Explorans limites defectum
Reply
#3
dumb question #1: Do I fire off the event based on IsFieldChangefor and do that StartsWith inside the action?

dumb question #2: I don't see a System:StartsWith(), am I blind?
EDIT: Answered dumb question #3.
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#4
never mind, i hacked around it. Built my own StartsWith.
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#5
It's a conditional command, so it only shows up under the If and If/Else buttons, because it makes no sense to use otherwise.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Location - Los Angeles zra 2 101 11-08-2019, 12:44 PM
Last Post: zra
  Can't Paste Description Repo Manager rbroders 5 1,221 09-30-2018, 08:37 AM
Last Post: Dean Roddey
  templates location Ron Haley 10 2,689 06-25-2015, 05:59 PM
Last Post: Dean Roddey
  Room Template Generation - Incorrect Description of Armed Modes kblagron 1 1,160 02-10-2013, 06:48 PM
Last Post: Dean Roddey
  Editing the description of a State electron 3 1,304 06-06-2009, 09:32 AM
Last Post: Dean Roddey
  Location information for a Collection via CML jrlewis 2 1,268 04-02-2009, 11:38 AM
Last Post: jrlewis
  Popup location ? Rolecgroup 1 1,031 05-06-2007, 12:32 AM
Last Post: Dean Roddey
  setting location over and over znelbok 1 997 02-02-2007, 05:14 PM
Last Post: Dean Roddey
  [Manifest Help] Valid Regex Characters? Squintz 1 1,278 01-26-2007, 05:30 PM
Last Post: Squintz
  CAB description diy8888 25 6,444 01-06-2007, 05:39 AM
Last Post: diy8888

Forum Jump:


Users browsing this thread: 1 Guest(s)