preg-match
PHP preg_match - only allow alphanumeric strings and - _ characters
I need the regex to check if a string only contains numbers, letters, hyphens or underscore 开发者_开发问答$string1 = \"This is a string*\";[详细]
2023-04-12 14:13 分类:问答customizing preg_match
How do i preg开发者_StackOverflow社区_match an string to match the following format in php: $m=\"123/456789/01\";[详细]
2023-04-11 20:11 分类:问答preg_match string
Can someone explain me the meaning of this pattern. preg_match(/\'^(d{1,2}([a-z]+))(?:s*)S (?=200[0-9])/\',\'21st March 2006\',\'$matches);[详细]
2023-04-11 19:36 分类:问答Delimiter must not be alphanumeric or backslash and preg_match
I have this code : $string1 = \"My name is \'Kate\' and im fine\"; $pattern = \"My name is \'(.*)\' and im fine\";[详细]
2023-04-11 10:34 分类:问答How do I get a part of a string in php? [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-04-11 06:50 分类:问答Xpath regex and preg-match function
I have this code: <div class=\"small_map_wrapper\"> <script type=\"text/javascript\">loadMap(\'44.7958873,20.471077899999954\');</script>[详细]
2023-04-10 22:37 分类:问答Match if several identical characters in a string
I would like to match if a string contains more than 1 identical character, for example : Using PHP preg_match or similar function.[详细]
2023-04-10 16:52 分类:问答PHP is_numeric or preg_match 0-9 validation
This isn\'t a big issue for me (as far as I\'m aware), it\'s more of something that\'s interested me. But what is the main difference, if any, of using is_numeric over preg_match (or vice versa) to va[详细]
2023-04-10 07:45 分类:问答preg_match: trying to identify number formats
I\'m trying to identify not only \"numbers\" in a string, but tag what type of number it is, such as General, Fraction, Percentile, Ratio etc.[详细]
2023-04-09 01:59 分类:问答Regular expression to detect line that starts with an asterisk
The code below fails to detect a single instance of the occurance. =O Whats wrong? =\\ How do I detect the following lines (which begin with a newline) that begin with an asterisk ? I\'m at a loss. T[详细]
2023-04-08 22:27 分类:问答