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

sed BBCode

Name: Anonymous 2009-10-15 7:15

I want to remove all BBCode tags.

> echo "expert:[b][i][o][aa][u]EXPERT BBCODE[/u][/aa][/o][/i][/b]" | sed -e 's/\[\/?[^\]]*\]//g'
expert:[b][i][o][aa][u]EXPERT BBCODE[/u][/aa][/o][/i][/b]



Why doesn't this work?

Name: 3 2009-10-15 7:30

also, the \/? part appears to be completely redundant.
s/\[[^\]]*\]//g; should produce the same output.

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