Last active
May 13, 2022 11:59
-
-
Save dixonge/c7b90f840f075ccd59d6f91db9abf11b to your computer and use it in GitHub Desktop.
Restrict regex search to first line of document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This substitutes for \A which doesn't work | |
(?<!\n)^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment