Giter VIP home page Giter VIP logo

pp2's Introduction

pp2

Week 4 regex . - Один любой символ, кроме новой строки \n. (h.l.o -> hello, hillo, halbo) \d - цифра (BD\d\d -> BD02, BD13) \D - Любой символ, кроме цифры (B\D\d. -> BA5l, BF25) \w - Любой символ (\w\w\w -> 123, a3b, a_!) \W Любая не-буква, не-цифра и не подчёркивание [..] - Один из символов в скобках, а также любой символ из диапазона a-b [0-9][0-9A-Fa-f] -> 12, 1F, 4B [^..] - Любой символ, кроме перечисленных \b - Начало или конец слова (слева пусто или не-буква, справа буква и наоборот). В отличие от предыдущих соответствует позиции, а не символу \bвал вал, перевал, Перевалка ^ Starts with $ Ends with {} Exactly the specified number of occurrences {n} Ровно n повторений (\d{4}) {m,n} От m до n повторений включительно (\d{2,4}) {m,} Не менее m повторений \d{3,} {,n} Не более n повторений ? Ноль или одно вхождение, синоним {0,1}

Ноль или более, синоним {0,} Одно или более, синоним {1,} | Either or () Capture and group \b Returns a match where the specified characters are at the beginning or at the end of a word (the "r" in the beginning is making sure that the string is being treated as a "raw string")

\d{5} - цифры ровно 5 раз \d\d/\d\d/\d{4} - дата в формате ДД/ММ/ГГГГ (но есть исключения) \d{2}:\d{2}:\d{2} - Selecting time with format: 14:56:10 [-+]?\d+ -- число -1, 74, 00012 [-+]? — либо -, либо +, либо пусто \d+ — последовательность из 1 или более цифр [0-9]+ - все числа \w+stan Kazakhstan, Kyrgyzstan, Uzbekistan (+7|8)(?\d{3})?-?\d{3}-\d{2}-\d{2} - +7707-123-11-22 ----- +7(707)123-11-22 ---- 8(707)123-11-22 [a-z]+@[a-z]+.[a-z]{2,5} - [email protected] [a-z0-9_]+@[a-z]+.[a-z]{2,5} - [email protected] [A-Za-z0-9_]+.?[A-Za-z0-9_]+@[a-z]+.[a-z]{2,4} - [email protected] [\w]+.?[\w]+@[\w]+.[\w]{2,4} - [email protected]

pp2's People

Contributors

almirderland avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.