mardi 10 mars 2015

PHP regular expression: string must contain X character N times


Vote count:

0




I'm newbie in the world of regular expression.

I want to create an expression can match X character N times in a string.

for example:

X = t

N = 2

then it should match string "test" or "tit" or "tt".



asked 1 min ago







PHP regular expression: string must contain X character N times

Aucun commentaire:

Enregistrer un commentaire