I need a regular expression that matches tab symbol by the following rules:
"—>text" does not match
"1.—>text" does not match
"1—>text" does not match
"A.—>text" does not match
"text—>text" match
That is, it shouldn't match tabs that are at the beginning of the text, after a listed item mark [A-Z] or [0-9]. Here is my expression:
(?<!^((?:\d+|[A-Z])(?:\.)?))\t(?!\1)
https://regex101.com/r/zgJAG9/1
It does not work for all cases:
How to fix it?
