Clean up braces in many languages


/ Published in: Regular Expression
Save to your folder(s)

Use this to quickly clean-up a file which has opening braces on a new line, a particular annoyance of mine.


Copy this code and paste it in your HTML
  1. /([\s\t]*[
  2. ]+[\s\t]*{)/ {/gi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.