Struggling with regex:
I'd like to find out if a string contains ONLY numerical characters BETWEEN tags or in some cases at the end of the string (so no closing tags). As soon as there is character data between any tags >x x x < it shouldn't be matched.
Another remark: the tags I am talking about are NOT html tags, so strip_tags() won't help me out.
A few examples:
<ps \"TblB\" 8>5 55
* that would be considered a match
<:cs "Helvetica" 2>1<:/cs>
* a match as well
<ps \"xxx\" 9>xxxxx 9830
* would not!
<ps "TblB" 27>text here<:cs "Helvetica" 2>2<:/cs>
* neither would this be a match
help much appreciated!
thnx