in reply to regexp problem, square paranthesis

You might like to have a look at Writeup Formatting Tips to help you format your posts the way you want. Specifically, you can use [ to get a [ and ] to get a ].

Cheers,

JohnGG