how-to_‎ > ‎

Regular expression hell

posted Jan 19, 2011, 12:35 PM by Daniele Albrizio
To transform all =~ 'something'  in =~ "something" in a file using VI:

1,$s/=\~\ '\([^']*\)'/=\~\ "\1"/g

Mind why I did this? Think of FreeRADIUS...
Comments