php - What does \d+ mean in regular expression terms? -


I am new to regular expressions and indicate the following \ d + I do not know exactly what it means, please tell me in the right direction.

D is a digit (a character in range 0-9), And + stands for 1 or more times, therefore, \ d + is 1 or more digits.

It is as simple as regular expressions. You should try to read a few more regular expressions. For example, Google has lots of results. Or you can try using a device free of charge that will let you enter a regular expression and sample text, then tell if (if anything) matches regex.


Comments