I have this text
XXX
text
XXX
XXX
text
XXX
XXX
text
XXX
and i want to capture the text between the XXX and XXX. (i am trying to get chapters out from a book )
/XXX.*XXX/
This will capture the first begin and the last end
/XXX.*?XXX/
This will skip every second chapter
Thanks ahead Barak