Looking for helpful regex commands for checking a novel
I'm just starting to realize the value of regular expressions in searching for errors in my novel. I plan on learning more about regex but if somebody had a list of common regex commands to search for common errors in a novel, that would be really helpful.
The kinds of things I would be looking for would be like: --a period or comma outside of quotation marks --quotation marks that are not completed --double words And a host of other things. Thanks. |
The sed program is used by many publishers for doing this sort of thing.
https://en.wikipedia.org/wiki/Sedhtt...99261572,d.eXY http://www.google.com/url?sa=t&rct=j...99261572,d.eXY |
Quote:
|
I would say without analyzing sentences there is no way to find those errors. That means you will not find ready-made regexps to do the job. From the other hand if you want to learn regexps the best thing you can do is to construct your own ones and check, modify, alter, try, experiment.
you can find online sites like this: http://www.myezapp.com/apps/dev/regexp/show.ws to help |
One of the best resources for learning sed is the following:
http://www.grymoire.com/Unix/Sed.html It also includes a one-liner detecting duplicate words. Detecting a comma or full stop after a blank space can be done as follows: Code:
sed -n '/ \.\|,/p' file |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
regex for novel.
Here's a web page I use.
abrambarneck.com/2013/10/21/fixing-common-errors-in-your-novel-with-find-and-replace-and-regex/ |
Quote:
|
You're welcome Greg. I stumbled across it on day and bookmarked it.Besides, with my skill level your question was the only one I could give an intelligent answer too. (ha ha)
|
Quote:
Here's some things I've run across that could be helpful in finding errors in prose. http://www.aidtopia.com/fiction/regexp.html http://www.mobileread.com/forums/sho...d.php?t=167971 http://regexr.com/ |
All times are GMT -5. The time now is 10:36 PM. |