|
Ok!
|
|
|
Ok!
|
---|---|---|---|---|
276 | preg_replace('~D~', '', $phone); | regex, php, phone, телефон регекс | 20530 | Оставить только цифры в номере телефона |
203 | /^([a-z0-9_.-]+)@([a-z0-9_.-]+).([a-z.]{2,6})$/ | regexp, email. JS | 14800 | Регулярное выражение для проверки email |
202 | /^(https?://)?([da-z.-]+).([a-z.]{2,6})([/w .-]*)*/?$/ | regexp, url, JS | 1300 | Регулярное выражение для проверки URL |
194 | <url>(.*)([^/]+)</loc>(.*)</url> | regexp | 19010 | Заменить строки, где loc оканчивается без слэша в файле sitemap.xml |
7 | <input type="tel" name="phone" class="form-control form-block" placeholder="+7(999)999-99-99" pattern="[+]d{1}[(]d{3}[)]d{4}[-]d{2}[-]d{2}" value=""> | html, phone, pattern, regex | 160 | Regex паттерн для проверки номера телефона. Пример html валидации |
4 | Character Meaning Example . Matches any single character – c.t will match cat, cot, cut, etc. + Repeats the previous match one or more times – a+ matches a, aa, aaa, etc * Repeats the previous match zero or more times. – a* matches all the same things a+ matches, but will also match an empty string. ? Makes the match optional. colou?r will match color and colour. ^ Called an anchor, matches the beginning of the string ^a matches a string that begins with a $ The other anchor, this matches the end of the string. a$ matches a string that ends with a. ( ) Groups several characters into a single unit, and captures a match for use in a backreference. (ab)+ matches ababab - that is, the + applies to the group. For more on backreferences see below. [ ] A character class - matches one of the characters c[uoa]t matches cut, cot or cat. [^ ] Negative character class - matches any character not specified c[^/]t matches cat or c=t but not c/t | регулярные выражения, regexp | 10 | Значения символов регулярного выражения |