Simple placeholder extraction regex
Posted: Tue Feb 09, 2010 8:00 am
I have the following:
I need to extract placeholders of the type {%MANUAL_#####%}
Where ##### is any number between 1 and the limit of an integer, so it should be arbitrary, but always numbers.
The above regex is pretty simple but I figured I would post something incase I missed a caveat.
Cheers,
Alex
Code: Select all
'#\{\%MANUAL_([0-9]+)\%\}#'Where ##### is any number between 1 and the limit of an integer, so it should be arbitrary, but always numbers.
The above regex is pretty simple but I figured I would post something incase I missed a caveat.
Cheers,
Alex