Posted By

Zenithus on 07/31/09


regex php c new line tidy braces different

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Clean up braces in many languages

 / Published in: Regular Expression

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

  1. /([\s\t]*[
  2. ]+[\s\t]*{)/ {/gi

Report this snippet  

You need to login to post a comment.