How to format given string using regex?
Posted
by
icoolninja
on Stack Overflow
See other posts from Stack Overflow
or by icoolninja
Published on 2012-10-07T15:13:21Z
Indexed on
2012/10/07
15:37 UTC
Read the original article
Hit count: 178
regex
|formatting
So I have defined variables in such a way in my file:
public static final String hello_world = "hello world"
public static final String awesome_world = "awesome world"
public static final String bye_world= "bye world"
I have many declarations like that.
Is it possible to format them as(All '=' in a line):
public static final String hello_world = "hello world"
public static final String awesome_world = "awesome world"
public static final String bye_world = "bye world"
I can't even think of a way to do it. Any kind of help is appreciated.
P.S If it matters, I use sublime text 2.
© Stack Overflow or respective owner