Tag:regular

  • How the regular expression engine works – never so clearly!

    Time:2020-2-26

    At present, more and more websites, editors and programming languages have supported a kind of“regular expression ”The “formula” of string search, the students who have programming experience should understandregular expression What is a regular expression? It is a pattern of string matching, more like a logical formula. Using regular expressions to match hello in the […]

  • hparser document

    Time:2020-2-26

    github : https://github.com/chloro-pn/… As a document of hparser, this paper is mainly divided into three parts. Hparser query interface introduction Use the hparser class to parse the XHTML file: #include “hparser.h” #include <exception> #include <iostream> int main() { //content is a std::string object. //Content stores utf8 encoded XHTML text. //Parse in the constructor process. If […]

  • Hong Kong, Macao and Taiwan mobile phone number regular

    Time:2020-2-25

    I. regular region Area code format regular Hong Kong Special Administrative Region 852 9 or 6 followed by 7 digits ^([6|9])\d{7}$ Macao SAR 853 66 or 68 followed by 5 digits ^[6]([8|6])\d{5}$ Taiwan Province 886 09 starts with 8 digits ^[0][9]\d{8}$ \^([6| 9]) \ D {7} $| ^ [0] [9] \ D {8} $| ^ […]

  • Sublime shortcut key settings

    Time:2020-2-25

    Sublime shortcut key settings 1. Setup menu Open “preferences – > key binding – default” is the shortcut key of sublime, which can also be changedOpen “preferences – > key binding – user” to customize shortcut keys 2. Setting method You can first open “preferences – > key binding – default” to see the rules […]

  • Details of nginx location instruction

    Time:2020-2-5

    Which variable of nginx does location match? $request_uri What are the matching types of location? =Beginning means exact match ^~Start, note that this is not a regular expression (a string match that raises the priority)– its purpose is to take precedence over regular expression matching. If the location is the best match, regular expression detection […]

  • Goweb text processing

    Time:2020-2-5

    text processing In web development, text processing is a very important part. We often need to process the output or input content. The text here includes string, number, JSON, XML and so on. As a high-performance language, go language has official standard library to support the processing of these texts. And in your use, you […]

  • UCB ds100 handout “principles and skills of data science” proofreading activity officially launched | apachecn

    Time:2020-1-18

    Contribution Guide: https://github.com/apachecn/d Overall progress: https://github.com/apachecn/d Project warehouse: https://github.com/apachecn/d Contribution Guide Please be brave to translate and improve your translation. Although we pursue excellence, we don’t require you to be perfect, so please don’t worry about translation mistakes – in most cases, our server has recorded all translations, so you don’t have to worry about […]

  • (76) C × WinForm custom control – form validation component

    Time:2020-1-18

    Official website http://www.hzhcontrols.com premise It’s been 7 or 8 years since I started, I always want to make a set of beautiful custom controls, so I have this series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net/winform/custom/control.git If you think it’s OK, please click star to support it Welcome to discuss: Penguins 568015492 Here we are. Order […]

  • JQ implementation switch menu selection state

    Time:2020-1-16

    Click the navigation menu to switch the selected state Effect:         Idea: first, get the selected URL, and then judge whether it is the same through regular. If it is the same, add the corresponding attribute, and if it is different, remove the corresponding attribute. HTML code home page video Music dynamic […]

  • JS access cookie

    Time:2020-1-14

    JS access cookie When using regular expression matching, the matching occurs but is false: Solve: After global regular matchinglastIndex1 will be added. The next match will start from the second bit, and you only have one bit in the test, so the match fails. After the match failslastIndexIt will become 0, and the next match […]

  • How to modify part of content with regular in Visual Studio 2017

    Time:2019-12-27

    Preface Before you start, if you have any questions about the installation, you can refer to this article: / / www.jb51.net/article/128474.htm. OK, let’s start the body of this article: To implement a gadget in the project recently, you need to add the corresponding [description] feature according to the content of the class’s attribute < summary […]

  • An example of removing non alphanumeric Chinese characters by regular method in Objective-C

    Time:2019-12-25

    Preface Today, I met a requirement. PM asked me to input non alphanumeric Chinese characters in the input box Start today’s article with this question Preparation Create a demo code as follows @interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *input; @property (weak, nonatomic) IBOutlet UILabel *label; @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; […]