Quote:
Originally Posted by neyet
Sorry, what is regex? Isn't regex = registry editor, which is part of Microsoft Windows?
|
No, regex is short for Regular Expression. It is used for pattern matching, so it becomes extremely useful when editing and repairing an ebook, because it lets you match patterns (instead of characters) to find and replace. All useful for bulk reformatting.
eg, instead of searching for all combinations of commas, periods, semi-colons and other punctuation marks, that erroneously have a space before them, you could use something like
\s(\p{Po}) to find them all at once instead of constantly changing the search string, and then replace it with
\1 which removes the space.
You can read more here...
https://www.computerhope.com/jargon/r/regex.htm