Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

n00b problem with regular expressions

Name: Anonymous 2010-03-30 17:43

sed -i -n 's/[23]/[213]/g' myfile.txt

I want to replace "[23]" with "[213]" This is not working because of the brackets being interpreted as a regular expression. Is there a escape character to avoid this?

Name: Anonymous 2010-03-30 18:45

>>5
you should probably escape all non-alphanumeric characters just to be sure.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List