View Single Post
Old 02-17-2024, 12:18 PM   #3
lomkiri
Zealot
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 136
Karma: 1000102
Join Date: Jul 2021
Device: N/A
You have to use a negative lookbehind (see this site, for example)

Code:
(?<!">\s—\s«\s.+?)(\.\s«\s)
Your selection is in the group 1 (i.e.\1), if you want to make a substitution

Explanation :
(?<! expr) ==> negative lookbehind (fail if "expr" is found)
">\s—\s«\s.+? ==> if found, don't select the expression that follows this group)
in witch .+? means a group of any char (at least one char) until the next expression (not greedy)
(\.\s«\s) ==> the expression you're looking for (it is the group 1)

Edit : In the search options, "Dot all" must be unchecked

Last edited by lomkiri; 02-18-2024 at 08:31 AM.
lomkiri is offline   Reply With Quote