in reply to Re: regex for identifying encrypted text
in thread regex for identifying encrypted text
/\-\-\-\-\-BEGIN ENCRYPTED PRIVATE KEY\-\-\-\-\-(.*?)\-\-\-\-\-END ENCRYPTED PRIVATE KEY\-\-\-\-\-/ will reliably match and captureat least it will reliably compile. But . doesn't match \n unless you have the /s option for your regex. You were just one character away from code that actually works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |