Ad Widget

Collapse

Pre-processing Trim, Regex or String?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clontarf[X]
    Member
    • Jan 2017
    • 80

    #1

    Pre-processing Trim, Regex or String?

    As the topic says, I have been experimenting and I can't find the answer to this.

    My value is:

    MSCluster_Network.Name="Something"

    I want Something, so I apply the following trim pre-processing;

    Left Trim: MSCluster_Network.Name="
    Right Trim: "

    My question: Is is a literal character/string match? Do I need escaping? Do I need regex? I can't find this documented anywhere.

    Any info appreciated.

    Thanks
  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    You can extract the content inside double quotes using Regular expression grouping "(.*)"
    Click image for larger version

Name:	extract-string-from-double-quotes.png
Views:	8100
Size:	40.6 KB
ID:	355852

    Comment

    • Clontarf[X]
      Member
      • Jan 2017
      • 80

      #3
      Thanks very much. I wasn't sure if it supported groups but it makes sense in hindsight. Thanks again.

      Would still like some clarification on trim if someone has information

      Comment

      • nameuser
        Member
        • Apr 2018
        • 39

        #4
        How to trim line break simbol?

        Comment

        Working...