Skip to content

Commit afbf4c9

Browse files
authored
Remove inaccurate assertion about Python's (?i)
It's not true that `(?i)` affects only things following it. It affects everything: >>> re.findall('need(?i)le', 'haystack haystack NEEDLE haystack') <stdin>:1: DeprecationWarning: Flags not at the start of the expression 'need(?i)le' ['NEEDLE']
1 parent 0460b5f commit afbf4c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VimScriptForPythonDevelopers.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ echo s
26392639

26402640
### Regular expression comparison
26412641

2642-
Note that the below table contains only the regular expressions that are present in both Python and Vim. There are some minor differences between the behavior of Vim and Python regular expression atoms listed below. For example, in Python the (?i) atom ignores case after the atom. But in Vim, the \c atom ignores case everywhere before and after the atom. Refer to the help pages for these atoms for more information.
2642+
Note that the below table contains only the regular expressions that are present in both Python and Vim.
26432643

26442644
What|Python|Vim
26452645
----|------|---

0 commit comments

Comments
 (0)