The $ at the end of your regex says it should match up to the end of the string. If anything (including a space) is appearing after "IPsec", then the string doesn't end with "IPsec" and the match will fail. Remove the $, and it should work.
In reply to Re^3: Regular expressions
by GotToBTru
in thread Regular expressions
by user786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |