Below is the text that I have:
Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna,
vel scelerisque nisl consectetur et. Nulla vitae elit libero, a pharetra augue.
Donec sed odio dui. Donec id elit non mi porta gravida at eget metus.
|------|------|
|6 | TEXT |
|7 | TEXT |
|8,9 | TEXT |
|------|------|
Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna,
vel scelerisque nisl consectetur et. Nulla vitae elit libero, a pharetra
I want to match this bit how would I do with a regular expression?
|6 | TEXT |
|7 | TEXT |
|8,9 | TEXT |
How can I achieve this?
|------|------|or must the lines of text to be matched have the the specific form as in your example (i.e.,|followed by one positive integer or two or more positive intergers followed by...)? In the latter case must the text to be matched be bracketed by the line|------|------|? Is it important that a regular expression be used or are you just assuming that's the only way of doing it?