I accidentally deleted (?many/some?) periods.
How can search for paragraph marks not preceded by a period.
The regular expression for a period is “.”
The regular expression for a paragraph mark is “\p”
Please advise.
Thanks, Tracey
I accidentally deleted (?many/some?) periods.
How can search for paragraph marks not preceded by a period.
The regular expression for a period is “.”
The regular expression for a paragraph mark is “\p”
Please advise.
Thanks, Tracey
You are wrong. The literal point (period) needs to be represented in a RegEx using the escape-backslash, thus showing as “\.
”. Paragraph marks aren’t content of searchable text ranges anyway. The full search is restricted to single paragraph contents one by one. Only in the exceptional case that you search for paragraph ends and nothing else, you can represent the “new paragraph” situation as “$” . The $
is also usable as a kind of a shortcut for a lookahead-assertion, but never is part of the finding then.
You can, however, search for all “last characters of a paragraph that are not a fullstop”. with the RegEx [^\.]$
where the square brackets constitute a character set, the ^
is a negation, and the $
requires a subsequent paragraph end.
Hint: The old extension AltSearch may still work. It provides searching across “paragraph marks”, and, IIRC, there the respective quasi character is denoted as \p. In addition the tools recently provided by “ScriptForge” may contain something helping you.
Thanks
I ended up making good use of: [^.?!)]$