Skip to content

flavor of regex? #5107

Answered by dscho
jayveesea asked this question in Q&A
Aug 17, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Git for Windows uses the same regular expressions as Git, which by default is the POSIX basic regular expression flavor. The -L :<funcname>:<path> option is parsed via the parse_range_funcname() function which uses the standard POSIX regcomp()/regexec() functions.

Git for Windows relies on the gnulib implementation that is vendored into compat/regex/.

Please note that Basic Regular Expressions ("BRE") are used here, not POSIX Extended ones.

Also please note that --perl-regexp has currently no effect on the -L option.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jayveesea
Comment options

@dscho
Comment options

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