I am new to regex and I need to filter only the starting and the ending breaks from the following line:
<br/><br/><br/><br/><br/><p>hello<br/>asdsadas</p><br/><br/><br/><br/><br/>
the regex I am using is this:
^[<br/>]+|[<br/>]+$
but this gives me the following result:
p>hello<br/>asdsadas</p
my required result is this:
<p>hello<br/>asdsadas</p>
can anyone tell me where I am getting it wrong? thanks in advance.
`s are not really parsed) from the ends of the input should not require DOM. – Jon Sep 11 '13 at 08:33