Return to Snippet

Revision: 16330
at July 31, 2009 04:47 by Zenithus


Updated Code
/([\s\t]*[
]+[\s\t]*{)/ {/gi

Revision: 16329
at July 31, 2009 04:45 by Zenithus


Initial Code
[\s\t]*[
]+[\s\t]*{

Initial URL

                                

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

Initial Title
Clean up braces in many languages

Initial Tags
regex, php, c, line

Initial Language
Regular Expression