September 4th, 2010, 09:00 AM
Remove new lines at start?
Okay i have a quote bbcode i want to strip any new lines at the start of, currently have this:
I have a regex cheat sheet but i've tried and failed
September 4th, 2010, 09:06 AM
What if you made the capturing group skip over any whitespace at the beginning? So immediately after the "[quote]" might come whitespace, and then (this is where the capturing starts) comes the quote itself.
September 4th, 2010, 07:18 PM
Actually figured it out by using:
September 5th, 2010, 03:01 PM
Hmm after testing this only works if there is a space, if i do anything right next to the quote bbcode tag it stops parsing it...any advice?