Regex to swap A and B in multiline text, with a various number of occurrences of A or B
2360
My regex is matching too much. How do I make it stop?
22581
aligned multi-line equation with intertext and block-wise numbering
123398
How to match multiple occurrences of a substring
30289
Python Regex - How to Get Positions and Values of Matches
7288
Handling multiple regex matches in Ampscript
116258
Count number of occurrences of a pattern on same line
64738
Typesetting A when a register is 1, B when 2, etc
137471
Permutations of a string with duplicate characters
83008
RegEx with multiple groups?
96252
JavaScript: replace last occurrence of text in a string
65646
How to capture an arbitrary number of groups in JavaScript Regexp?
2164
How to make \left, \right pairs of delimiter work over multiple lines?
102186
How to capture multiline regex between two tags?
3737
Vim: insert the same characters across multiple lines
62998
How to match multiple copies of a value?
90078
Non greedy (reluctant) regex matching in sed?
126315
How to find overlapping matches with a regexp?