Question

Regex por Transform the Output

  • 16 January 2024
  • 0 replies
  • 21 views

Badge +2

As the integer translation is not working for us properly I need to substitute some numbers for integers at the ouput of a SNMP trap.

 

I’written this expression but I only achieve to translate 1. for locked but not if it is another number.

s/1\./locked/g;s/2\./holdover/g;s/3\./relock/g;s/0\./unlocked/g

 

someone knows the good regexp? 

 

Thankyou


0 replies

Be the first to reply!

Reply