Skip to content

Can regex support mismatching '\n'? #920

Answered by BurntSushi
freekeeper asked this question in Q&A
Discussion options

You must be logged in to vote

. does not match \n by default, like just about every other regex engine. And like almost every other regex engine, you can make . match \n by enabling the s flag.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@freekeeper
Comment options

@BurntSushi
Comment options

@freekeeper
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants