title: How to write RegEx for inserting line break for line length more than 30 characters
body: <p>I am using a text editor which lets me use regular expressions to find/replace text. I have a large text file and  want to insert a new line in lines which are more than 30 characters. I want the line to break after the 30th character and it doesn't matter if a word or phrase breaks or not.</p>
  
  <p>Original text:</p>
  
  <pre><code>Hi this is a sample text.
  this is a line.
  This is a very very very very very long line.
  This is a regular line.
  ....
  </code></pre>
  
  <p>Modified text:</p>
  
  <pre><code>Hi this is a sample text.
  this is a line.
  This is one very very very ver
  y very long line.
  This is a regular line.
  ....
  </code></pre>
  
  <p>How can I write a regular expression to:</p>
  
  <ol>
  <li>find lines with more than 30 characters.</li>
  <li>insert a new line AFTER the 30th character of the lines which are more than 30 characters long.</li>
  </ol>