Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found this question on StackOverflow. It worked great but I also need to include lines that have non-alphabet characters in it like:


And add prefixes like this:


Based on the the other topic I'm guessing I need a regex that matches dots and such besides just regular text.

Does anyone know how I can accomplish this?

share|improve this question

Nevermind. Found the answer:

share|improve this answer
Please accept you answer. – amiregelz Aug 20 '12 at 13:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.