{"id":32474,"date":"2025-03-25T18:44:40","date_gmt":"2025-03-25T09:44:40","guid":{"rendered":"https:\/\/docs.c-bot.pro\/?p=32474"},"modified":"2025-03-25T18:44:41","modified_gmt":"2025-03-25T09:44:41","slug":"regex","status":"publish","type":"post","link":"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/regex\/","title":{"rendered":"About regular expressions"},"content":{"rendered":"\n<p><a href=\"https:\/\/docs.c-bot.pro\/en\/\"><i class=\"fas fa-book\"> <\/i> &nbsp; Home<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\">User guide<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/\">BOT<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/\">How to use the BOT editor<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\">Extention<\/a> &gt; About regular expressions<\/p>\n\n\n\n<p>This page explains regular expressions with examples.<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\"><strong>Filter method<\/strong><\/h2>\n\n\n\n<p>You can specify the filter method in some extensions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"246\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/03\/img_filter_regex_en-1024x246.png\" alt=\"\" class=\"wp-image-32475\"\/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 id=\"outline__1_0_1\" class=\"wp-block-heading\">Do not use regular expression<\/h4>\n\n\n\n<p>You can use wildcards to specify the filter pattern.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-table\"><table><thead><tr><th>Sample<\/th><th>Applicable file name<\/th><\/tr><\/thead><tbody><tr><td><strong>*.jpg<\/strong><\/td><td>All files with a .jpg extension<\/td><\/tr><tr><td><strong>*<\/strong><\/td><td>All files<\/td><\/tr><tr><td><strong>?.jpg<\/strong><\/td><td>Files with a .jpg extension and any 1 character<\/td><\/tr><tr><td><strong>??.jpg<\/strong><\/td><td>Files with a .jpg extension and any 2 character<\/td><\/tr><tr><td><strong>wh*<\/strong><\/td><td>who, why, what, when, which...<\/td><\/tr><tr><td><strong>wh?<\/strong><\/td><td>Who or why<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 id=\"outline__1_0_2\" class=\"wp-block-heading\">Use regular expression<\/h4>\n\n\n\n<p>You can use regular expressions to specify the filter pattern.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-table\"><table><thead><tr><th>Sample<\/th><th>Applicable file name<\/th><\/tr><\/thead><tbody><tr><td><strong>\\d{4}-\\d{2}-\\d{2}\\.csv<\/strong><\/td><td>Files with .csv extension and YYYYY-MM-DD file name format<\/td><\/tr><tr><td><strong>\\d+\\.png<\/strong><\/td><td>Files with .png extension and a file name of at least one arbitrary number<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Home &gt; User guide &gt; BOT &gt; How to use the BOT editor &gt; Extention &gt; About regular expressions This page explains regular expressions with examples. Filter method You can specify the filter method in some extensions. Do not use regular expression You can use wildcards to specify the filter pattern. Sample Applicable file name *.jpg All files with a .jpg extension * All files ?.jpg Files with a .jpg extension and any 1 character ??.jpg Files with a .jpg extension and any 2 character wh* who, why, what, when, which... wh? Who or why Use regular expression You can use regular expressions to specify the filter pattern. Sample Applicable file name \\d{4}-\\d{2}-\\d{2}\\.csv Files with .csv extension and YYYYY-MM-DD file name format \\d+\\.png Files with .png extension and a file name of at least one arbitrary number<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"en_US","_original_post":"https:\/\/docs.c-bot.pro\/?p=32447","footnotes":""},"categories":[37],"tags":[],"class_list":["post-32474","post","type-post","status-publish","format-standard","hentry","category-extension","en-US"],"_links":{"self":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/comments?post=32474"}],"version-history":[{"count":1,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32474\/revisions"}],"predecessor-version":[{"id":32476,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32474\/revisions\/32476"}],"wp:attachment":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/media?parent=32474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/categories?post=32474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/tags?post=32474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}