AutoTools Regex doesn't match text

Discussion in 'AutoApps' started by robertsteward, Sep 27, 2017.

  1. robertsteward

    robertsteward New Member

    Joined:
    Jul 11, 2017
    Messages:
    16
    Likes Received:
    0
    Can someone tell me the proper way of using the Autotool regex function? My find works but the problem is the test can be conditional and may not exist half the time resulting in a nagging notification "Regex doesn't match text". I want to "fail" silently. Any suggestions.
    Works
    Testregex (76)
    A1: Variable Set [ Name:%testme To:123cat456 Recurse Variables:Off Do Maths:Off Append:Off ]
    A2: AutoTools Regex [ Configuration:Text: %testme
    Regex: (?<results>[a-z]+)
    Output Text: %results Timeout (Seconds):60 ]
    A3: Flash [ Text:%testme
    %results Long:Off ]

    Doesn't work (I know why, using as da
    Testregex (76)
    A1: Variable Set [ Name:%testme To:123000456 Recurse Variables:Off Do Maths:Off Append:Off ]
    A2: AutoTools Regex [ Configuration:Text: %testme
    Regex: (?<results>[a-z]+)
    Output Text: %results Timeout (Seconds):60 ]
    A3: Flash [ Text:%testme
    %results Long:Off ]
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,055
    Likes Received:
    768
    If you don’t want to see those messages you can disable them in the main app > Logs and Alerts
    Hope this helps
     
    dvalladolid likes this.
  3. robertsteward

    robertsteward New Member

    Joined:
    Jul 11, 2017
    Messages:
    16
    Likes Received:
    0
    that might work. thanks.
     

Share This Page