Maybe the question is familiar but I need an explanation in this case.
Let's assume that I have a file called test.txt
. It has the following content:
An example of this line. The line has more than 20 characters.
[sql]SELECT * FROM LINE WHERE aLine = '123'[/sql]
blah blah blah blah...
OR what's about
An example of this line. The line has more than 20 characters.
[sql]SELECT * FROM
LINE
WHERE aLine = '123'[/sql]
blah blah blah blah...
[sql] SELECT * FROM ME[/sql]
etc..er
[sql]
SELECT * FROM ALL
[/sql]
I want to get a string between [sql]
and [/sql]
delimiters.
How to do that ? With Regular expression ?
Thanks for patience ...