B
Barty Slartfast
I have a string of which the middle part is an unknown generated by user
input, for example:
ladiddfa BEGIN balblabla END and whatever else..."
The middle part being --> balblabla <---
I would like to extract whatever string is within the BEGIN and END
delimiters, but I don't know in advance what the middle part is.
It may be any number of characters, numbers, empty spaces, linebreaks, or
nothing at all.
Any idea of the simplest possible perl code to do this?
input, for example:
ladiddfa BEGIN balblabla END and whatever else..."
The middle part being --> balblabla <---
I would like to extract whatever string is within the BEGIN and END
delimiters, but I don't know in advance what the middle part is.
It may be any number of characters, numbers, empty spaces, linebreaks, or
nothing at all.
Any idea of the simplest possible perl code to do this?