Hi there,
I have $pattern='/\*pag[^\]]*)[^\]]*)[^\]]*)\*/';
that works well for three arguments like:
*pag:first:second:third*
But I would like one that works also for fewer arguments, and simple returns an empty string for the patterns missing.
so other patters could be:
*pag:first:second*
and even
*pag:first::third*
can this be done with one pattern?
I have $pattern='/\*pag[^\]]*)[^\]]*)[^\]]*)\*/';
that works well for three arguments like:
*pag:first:second:third*
But I would like one that works also for fewer arguments, and simple returns an empty string for the patterns missing.
so other patters could be:
*pag:first:second*
and even
*pag:first::third*
can this be done with one pattern?