Reputation: 3068
In NPP, I need to search/replace from the start of line "Installed"
all the way down to the "Rx Coding Error"
, including the trailing numbers (random, any length) and also including the trailing newline character.
I have this regex so far, and it matches everything down to Rx Coding Error
but cannot see how to add the additional whitespace + colon + random numbers/length + newline
.
\b\s+Installed[\s\S]*?Rx Coding Error\b
I am searching for a code block similar to that below:
EFM Link 1/2/3 on EFM Group 3/2/1 is ENABLED and UP
Installed : YES
Near end tc sync : SYNC
Rx Coding Error : 595237
Upvotes: 0
Views: 170
Reputation: 2748
Try with following regex.
Regex: ^\s*Installed[\s\S]*Rx Coding Error.*
It will match string till end of line.
Upvotes: 1
Reputation: 452
Extending on @SahilGulati's answer:
^\s+Installed[\s\S]*?Rx Coding Error\s+:\s+\d+\s+
should do the job, assuming you want to start from the same line of Installed
https://regex101.com/r/F84BKW/4
Upvotes: 1