I have this string:
This is sample <p id="short"> the value of short </p> <p id="medium"> the value of medium </p> <p id="large"> the value of large</p>
which I want to break into 3 pieces:
- string before p tags :
this is sample
- short :
the value of short
- medium:
the value of medium
- large:
the value of large
element consistent or do you need a pattern that is sensitive to other possible attributes?
– csano May 06 '11 at 23:10