Forum Discussion

TJ_Vreugdenhil's avatar
Apr 13, 2014

Notepad++ Regex editing

Hi I was wondering if there is a way to do a Regex expression or something similar to edit the bigip config:

Something similar to : 
Find what: monitor KeepAlive-Port*
Find what: monitor KeepAlive-Port{*}
Replace with: monitor none

Search mode is set to Regular expression & "matches newline" 

ltm pool TEST-POOL {
    members {
        1.1.1.1:4401 {
            address 172.19.29.21
            monitor KeepAlive-Port4401
            session monitor-enabled
            state down
        }
        1.1.1.2:5501 {
            address 172.19.29.22
            monitor KeepAlive-Port5501
            session monitor-enabled
            state down
        }
    }
}

Thanks!

2 Replies

  • Bring up the Replace dialog box (Ctrl+H) and select the Regular Expression search mode.

     

    Enter this in Find What: monitor KeepAlive-Port.* and this in Replace With: monitor none

     

    then hit Replace All.