User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:nnels:etext:regex [2018/07/12 10:07]
leah.brochu
public:nnels:etext:regex [2022/04/11 14:02] (current)
rachel.osolen
Line 66: Line 66:
  
 Find: ''([a-z])-^13([a-z])'' Find: ''([a-z])-^13([a-z])''
 +
 +Replace with: ''\1\2''
 +
 +Using a-z restricts what it finds to lowercase.
 +
 +You will likely have to do it again for lines that end with a comma, and possibly en and em dash. Look through your document for patterns of anything else it might have missed.
 +</WRAP>
 +
 +----
 +
 +<WRAP center round box 80%>
 +**PROBLEM**: Hyphenated words that break single word (not over two lines).
 +
 +**SOLUTION**: Replace with the same text minus the hyphen.
 +
 +Find: ''([a-z])-([a-z])''
  
 Replace with: ''\1\2'' Replace with: ''\1\2''
Line 90: Line 106:
  
 ---- ----
 +
  
 <WRAP center round box 80%> <WRAP center round box 80%>
Line 156: Line 173:
   * ''\p.+\s+[0-9OoIil]{1,3}\p'' ### Detect bad line breaks ###   * ''\p.+\s+[0-9OoIil]{1,3}\p'' ### Detect bad line breaks ###
   * ''[^\."?!]$''   * ''[^\."?!]$''
 +
 +
 +[[public:nnels:etext:start|Return to main eText Page]]
  
public/nnels/etext/regex.1531415265.txt.gz · Last modified: 2018/07/12 10:07 by leah.brochu