Advertisement
ArchiveGuy

Useful Regex for MT Pastebins

Sep 10th, 2014
1,468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Remove comments (Wrapped in double forward slash):
  2.  
  3. Find what: //.*?\w.*?//
  4. Replace with: (blank)
  5.  
  6. Remove lines with Japanese (or any non-ASCII) characters (Might remove translated lines with some Japanese characters included or other random shit, beware. Removing comments first is recommended for this reason):
  7.  
  8. Find what: .*[^\x00-\x7F\W]+.*
  9. Replace with: (blank)
  10.  
  11. Remove extra line breaks:
  12.  
  13. Find what: \n\s*\n\s*\n
  14. Replace with: \n\n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement