{"id":14858,"date":"2019-05-28T19:21:55","date_gmt":"2019-05-28T17:21:55","guid":{"rendered":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/?page_id=14858"},"modified":"2020-11-24T21:16:25","modified_gmt":"2020-11-24T19:16:25","slug":"ygrep-search-engine-applications","status":"publish","type":"page","link":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/shareware-home\/ygrep-search-engine-applications\/","title":{"rendered":"YGrep Search Engine applications"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What you can do with regular expressions<\/h2>\n\n\n\n<p>Sometimes, people do not know what they can do with regular expressions. The\u00a0<a href=\"https:\/\/www.roumazeilles.net\/ygrep\/regex.php\">syntax<\/a>\u00a0may be known, but the applications still appear unrecognized. This is the reason why I decided to list a few typical cases with the regular expressions to search for and their meanings.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MS-DOS file names<ul><li>Regex pattern:&nbsp;\\([A-Za-z]\\:\\)\\([A-Za-z]+\\)\\.\\([A-Za-z]+\\)<\/li><li>Search into:&nbsp;C:file.txt<\/li><li>expr1 = drive (C:)<\/li><li>expr2 = file name (file)<\/li><li>expr3 = file suffix (txt)<\/li><\/ul><\/li><li>HTTP (web) address<ul><li>Regex pattern:&nbsp;https:\/\/\\([a-z]+\\..+\\.[a-z]+\\)\/\\([a-z\/]*\\)\\\/\/([a-z]+.[a-z]+\/)<\/li><li>Search into:&nbsp;https:\/\/www.ser.com\/dir\/file.htm<\/li><li>expr1 = server name (www.ser.com)<\/li><li>expr2 = directory name (dir)<\/li><li>expr3 = file name (file.htm)<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>Regular expressions can also be used to &#8220;decode&#8221; email SMTP headers, compilation errors in a compilation error file, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What you can do with regular expressions Sometimes, people do not know what they can do with regular expressions. The\u00a0syntax\u00a0may be known, but the applications still appear unrecognized. This is the reason why I decided to list a few typical cases with the regular expressions to search for and their meanings. MS-DOS file names Regex [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":14866,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14858","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/pages\/14858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/comments?post=14858"}],"version-history":[{"count":0,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/pages\/14858\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/pages\/14866"}],"wp:attachment":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/media?parent=14858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}