samedi 9 mai 2015

What does the regex "/\\*{2,}/" mean? [duplicate]

This question already has an answer here:

I'm kinda new to regex, and specifically, I don't understand there are 2 backslashes? I mean, I know the second one is to escape the character "*", but what does the first backslash do?

Well I'm passing this regex expression to the php function preg_match(), and I'm trying to find strings that include 2 or more consecutive "*".

Aucun commentaire:

Enregistrer un commentaire