I need some regex to strip the [ and ] off the start of the string, and anything in the middle, so:
[text]KeepThis should be KeepThis.
I can’t seem to get my head around how to do it (far to long since I used regex 🙂 )
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The regex finds any pair of brackets and their content from the beginning of the string and replaces it with an empty string.