Tuesday 10 September 2013

REGEX to select first two lines from a div

REGEX to select first two lines from a div

Is there any way to select first two lines from text in a div.
Content in div:
/*------------------------
| some content goes here |
| inside div or any |
| container in HTML. is |
| it possible to select |
| first two lines |
| displaying in browser |
----------------------- */
SelectedText = "some content goes here inside div or any"

No comments:

Post a Comment