Forum Discussion
TJ_Vreugdenhil
Cirrus
Apr 13, 2014Notepad++ 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!
- That would be neat. :) +1!
- What_Lies_Bene1
Cirrostratus
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects