{"id":7534,"date":"2025-01-24T08:58:47","date_gmt":"2025-01-24T08:58:47","guid":{"rendered":"https:\/\/howtogeek.blog\/ja\/?p=7534"},"modified":"2025-01-24T08:58:47","modified_gmt":"2025-01-24T08:58:47","slug":"a-comprehensive-guide-to-using-regex-functions-in-excel","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/ja\/a-comprehensive-guide-to-using-regex-functions-in-excel\/","title":{"rendered":"Excel \u3067 REGEX \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u5305\u62ec\u7684\u306a\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>2024 \u5e74\u3001Microsoft \u306f\u6b63\u898f\u8868\u73fe (REGEX) \u3092\u4e2d\u5fc3\u3068\u3057\u305f 3 \u3064\u306e\u5f37\u529b\u306a\u95a2\u6570\u3092\u5c0e\u5165\u3057\u3001Excel \u306e\u6a5f\u80fd\u3092\u5f37\u5316\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u3001\u3064\u307e\u308a REGEXTEST\u3001REGEXEXTRACT\u3001\u304a\u3088\u3073 REGEXREPLACE \u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u8907\u96d1\u306a\u30c7\u30fc\u30bf \u30d1\u30bf\u30fc\u30f3\u3092\u52b9\u7387\u7684\u306b\u8b58\u5225\u3001\u62bd\u51fa\u3001\u7f6e\u63db\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f Excel Web \u30d0\u30fc\u30b8\u30e7\u30f3\u3068 Microsoft 365 \u5185\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c\u304c\u5927\u5e45\u306b\u5f37\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2 id=\"introduction-to-regex\">Excel \u306e REGEX \u95a2\u6570\u3092\u7406\u89e3\u3059\u308b<\/h2>\n<p>\u6b63\u898f\u8868\u73fe\u306f\u3001\u691c\u7d22\u30d1\u30bf\u30fc\u30f3\u3092\u5f62\u6210\u3059\u308b\u6587\u5b57\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u3042\u308a\u3001\u8a73\u7d30\u306a\u30c7\u30fc\u30bf\u5206\u6790\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001Excel \u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u3092\u5909\u9769\u3057\u3001\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3001\u62bd\u51fa\u3001\u5909\u66f4\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u3067\u76f4\u611f\u7684\u306a\u3082\u306e\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"using-the-regextest-function\">REGEXTEST\u95a2\u6570\u3092\u6d3b\u7528\u3059\u308b<\/h2>\n<p>REGEXTEST \u95a2\u6570\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u304c\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u691c\u51fa\u3057\u3001TRUE \u307e\u305f\u306f FALSE \u306e\u51fa\u529b\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u95a2\u6570\u306e\u69cb\u6587\u306f \u3067\u3059<code>REGEXTEST(value, pattern, [case_sensitive])<\/code>\u3002\u3053\u3053\u3067\u3001<code>value<\/code>\u306f\u30c6\u30b9\u30c8\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30c6\u30ad\u30b9\u30c8\u3001<code>pattern<\/code>\u306f\u691c\u7d22\u5bfe\u8c61\u306e REGEX \u30d1\u30bf\u30fc\u30f3\u3001\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u305f\u3068\u3048\u3070\u3001\u88fd\u54c1\u30b3\u30fc\u30c9\u307e\u305f\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u30b3\u30fc\u30c9\u3092\u542b\u3080 Excel \u30b7\u30fc\u30c8\u3092\u5206\u6790\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u88fd\u54c1\u30b3\u30fc\u30c9\u306e\u4f8b\" class=\"wp-image\" decoding=\"async\" height=\"456\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-437-1.webp\" title=\"\u88fd\u54c1\u30b3\u30fc\u30c9\u306e\u4f8b\" width=\"811\"\/><\/figure>\n<ul>\n<li>\u30b3\u30fc\u30c9\u306b\u6570\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30bb\u30eb C4 \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059<code>=REGEXTEST(A4, \"[0-9]\")<\/code>\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"REGEXTEST\u306e\u30bb\u30ebC4\u306b\u5165\u529b\" class=\"wp-image\" decoding=\"async\" height=\"446\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-438-1.webp\" title=\"REGEXTEST\u306e\u30bb\u30ebC4\u306b\u5165\u529b\" width=\"792\"\/><\/figure>\n<ul>\n<li>\u30b3\u30fc\u30c9\u306b\u6570\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u51fa\u529b\u306b\u306f\u300cTRUE\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"REGEXTEST TRUE\u306e\u51fa\u529b\" class=\"wp-image\" decoding=\"async\" height=\"476\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-439-1.webp\" title=\"REGEXTEST TRUE\u306e\u51fa\u529b\" width=\"846\"\/><\/figure>\n<ul>\n<li>\u3053\u308c\u3092\u4ed6\u306e\u30bb\u30eb\u306b\u8907\u88fd\u3059\u308b\u306b\u306f\u3001\u6570\u5f0f\u30bb\u30eb\u306e\u9685\u306b\u3042\u308b\u5857\u308a\u3064\u3076\u3057\u30cf\u30f3\u30c9\u30eb\u3092\u3064\u304b\u3093\u3067\u4e0b\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u3001\u96a3\u63a5\u3059\u308b\u30bb\u30eb\u3092\u81ea\u52d5\u5165\u529b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u6570\u5f0f\u3092\u4e0b\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u30bb\u30eb\u3092\u57cb\u3081\u308b\" class=\"wp-image\" decoding=\"async\" height=\"430\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-440-1.webp\" title=\"\u6570\u5f0f\u3092\u4e0b\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u30bb\u30eb\u3092\u57cb\u3081\u308b\" width=\"764\"\/><\/figure>\n<ul>\n<li>\u96fb\u8a71\u756a\u53f7\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6b21\u3092\u4f7f\u7528\u3057\u307e\u3059<code>=REGEXTEST(A4, \"\\(?\\d{3}\\)?[-.\\s]?\\d{4}\")<\/code>\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u96fb\u8a71\u756a\u53f7\u306e REGEXTEST\" class=\"wp-image\" decoding=\"async\" height=\"478\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-443-1.webp\" title=\"\u96fb\u8a71\u756a\u53f7\u306e REGEXTEST\" width=\"849\"\/><\/figure>\n<ul>\n<li>\u524d\u3068\u540c\u69d8\u306b\u3001\u30cf\u30f3\u30c9\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u8ffd\u52a0\u306e\u30bb\u30eb\u306b\u9069\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u96fb\u8a71\u756a\u53f7\u30c1\u30a7\u30c3\u30af\u306e\u30c9\u30e9\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\" class=\"wp-image\" decoding=\"async\" height=\"455\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-444-1.webp\" title=\"\u96fb\u8a71\u756a\u53f7\u30c1\u30a7\u30c3\u30af\u306e\u30c9\u30e9\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\" width=\"809\"\/><\/figure>\n<h2 id=\"using-the-regexextract-function\">REGEXEXTRACT \u306b\u3088\u308b\u30c6\u30ad\u30b9\u30c8\u306e\u62bd\u51fa<\/h2>\n<p>REGEXEXTRACT \u95a2\u6570\u306f\u3001\u7279\u5b9a\u306e\u5024\u304b\u3089\u7279\u5b9a\u306e\u30c6\u30ad\u30b9\u30c8 \u30bb\u30b0\u30e1\u30f3\u30c8\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u69cb\u6587\u306f \u3067\u3059<code>REGEXEXTRACT(value, pattern, [first_match], [all_matches], [case_sensitive])<\/code>\u3002\u3053\u3053\u3067\u306f\u3001\u62bd\u51fa\u5143\u3092\u6307\u5b9a\u3057<code>value<\/code>\u3001<code>pattern<\/code>\u62bd\u51fa\u5bfe\u8c61\u306e\u6982\u8981\u3092 \u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6700\u521d\u306e\u4e00\u81f4\u306e\u307f\u3092\u691c\u7d22\u3059\u308b\u304b\u3001\u3059\u3079\u3066\u306e\u4e00\u81f4\u3092\u691c\u7d22\u3059\u308b\u304b\u3001\u307e\u305f\u691c\u7d22\u3067\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u524d\u306e\u4f8b\u3092\u7d9a\u3051\u308b\u3068\u3001\u96fb\u8a71\u756a\u53f7\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"REGEXEXTRACT\u306e\u4f7f\u7528\u4f8b\" class=\"wp-image\" decoding=\"async\" height=\"439\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-445-1.webp\" title=\"REGEXEXTRACT\u306e\u4f7f\u7528\u4f8b\" width=\"780\"\/><\/figure>\n<ul>\n<li>\u96fb\u8a71\u756a\u53f7\u3092\u62bd\u51fa\u3059\u308b\u306b\u306f\u3001<code>=REGEXEXTRACT(A4, \"(\\\\d{3})?[-.\\s]?\\\\d{3}[-.\\s]?\\\\d{4}\")<\/code>\u30bb\u30eb C4 \u3067\u6b21\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"REGEXEXTRACT\u306e\u5165\u529b\" class=\"wp-image\" decoding=\"async\" height=\"517\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-446-1.webp\" title=\"REGEXEXTRACT\u306e\u5165\u529b\" width=\"919\"\/><\/figure>\n<ul>\n<li>\u3053\u306e\u6570\u5f0f\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u53c2\u7167\u5148\u306e\u30bb\u30eb\u306b\u96fb\u8a71\u756a\u53f7\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u304c\u51fa\u529b\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u6570\u5f0f\u3092\u4e0b\u306b\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3068\u3001\u3053\u306e\u62bd\u51fa\u304c\u4ed6\u306e\u30bb\u30eb\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u96fb\u8a71\u756a\u53f7\u306e REGEXEXTRACT \u51fa\u529b\" class=\"wp-image\" decoding=\"async\" height=\"445\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-447-1.webp\" title=\"\u96fb\u8a71\u756a\u53f7\u306e REGEXEXTRACT \u51fa\u529b\" width=\"791\"\/><\/figure>\n<ul>\n<li>\u8ffd\u52a0\u306e\u4e00\u81f4\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059<code>=REGEXEXTRACT(A4, \"(\\\\d{3})?[-.\\s]?\\\\d{3}[-.\\s]?\\\\d{4}\", 1)<\/code>\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u8907\u6570\u306e\u4e00\u81f4\u306bREGEXEXTRACT\u3092\u4f7f\u7528\u3059\u308b\" class=\"wp-image\" decoding=\"async\" height=\"483\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-448-2.webp\" title=\"\u8907\u6570\u306e\u4e00\u81f4\u306bREGEXEXTRACT\u3092\u4f7f\u7528\u3059\u308b\" width=\"858\"\/><\/figure>\n<h2 id=\"using-the-regexreplace-function\">REGEXREPLACE \u3067\u30c7\u30fc\u30bf\u30d1\u30bf\u30fc\u30f3\u3092\u5909\u66f4\u3059\u308b<\/h2>\n<p>REGEXREPLACE \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u5185\u306e\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u691c\u7d22\u3057\u3001\u305d\u308c\u3092\u5225\u306e\u5f62\u5f0f\u3067\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u69cb\u6587\u306f \u3067\u3059<code>REGEXREPLACE(value, pattern, replacement, [occurrence], [case_sensitive])<\/code>\u3002<code>value<\/code>\u306f\u7f6e\u63db\u3059\u308b\u5bfe\u8c61\u3001<code>pattern<\/code>\u306f\u691c\u7d22\u3059\u308b\u5bfe\u8c61\u3001 \u306f<code>replacement<\/code>\u7f6e\u63db\u3059\u308b\u5185\u5bb9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u4ee5\u524d\u306e\u30c7\u30fc\u30bf\u3092\u5229\u7528\u3057\u3066\u3001\u30bb\u30eb C4 \u3067\u6b21\u306e\u3088\u3046\u306b\u95a2\u6570\u3092\u9069\u7528\u3057\u3001<code>=REGEXREPLACE(A4, \"(\\\\d{3})?[-.\\s]?\\\\d{3}[-.\\s]?\\\\d{4}\", \"$1-$2-$3\")<\/code>\u96fb\u8a71\u756a\u53f7\u306e\u5f62\u5f0f\u3092\u6a19\u6e96\u5316\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-image\"><img alt=\"\u96fb\u8a71\u756a\u53f7\u3092\u6a19\u6e96\u5316\u3059\u308b REGEXREPLACE \u306e\u4f8b\" class=\"wp-image\" decoding=\"async\" height=\"493\" loading=\"lazy\" src=\"https:\/\/cdn.howtogeek.blog\/wp-content\/uploads\/2025\/01\/image-449-1.webp\" title=\"\u96fb\u8a71\u756a\u53f7\u3092\u6a19\u6e96\u5316\u3059\u308b REGEXREPLACE \u306e\u4f8b\" width=\"876\"\/><\/figure>\n<h3 id=\"practical-tips-for-regex\">REGEX\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30d2\u30f3\u30c8<\/h3>\n<ul>\n<li>\u52b9\u679c\u7684\u306a REGEX \u30d1\u30bf\u30fc\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u306a &#8216;{}&#8217; \u3084 &#8216;[]&#8217; \u306a\u3069\u306e\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/li>\n<li>REGEX \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u8907\u96d1\u3055\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u304c\u9069\u5207\u306b\u69cb\u9020\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u306e\u8996\u899a\u5316\u3068\u5206\u6790\u3092\u5f37\u5316\u3059\u308b\u306b\u306f\u3001\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\u3092 REGEX \u3068\u4f75\u7528\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>Excel \u306b\u306f\u3001\u30c7\u30fc\u30bf\u64cd\u4f5c\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3092\u3055\u3089\u306b\u5145\u5b9f\u3055\u305b\u308b\u305f\u3081\u306e Flash Fill \u3084 TEXTSPLIT \u306a\u3069\u306e\u4ed6\u306e\u30c7\u30fc\u30bf\u62bd\u51fa\u624b\u6cd5\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/excel-help-55 Cbd404-814f-5300-8357-7697ff98bca4\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">Excel \u306e REGEX \u6a5f\u80fd\u306b\u3064\u3044\u3066\u306e\u7406\u89e3\u3092\u6df1\u3081\u305f\u3044\u5834\u5408\u306f\u3001 Microsoft Excel \u30d8\u30eb\u30d7 \u30da\u30fc\u30b8<\/a>\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u304b\u3001<a href=\"https:\/\/www.regular-expressions.info\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u3053\u306e\u5305\u62ec\u7684\u306a REGEX \u30ac\u30a4\u30c9<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n<h3><strong>1. Excel \u306e REGEX \u95a2\u6570\u306f\u4f55\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304b?<\/strong><\/h3>\n<p>Excel \u306e REGEX \u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3064\u3051\u305f\u308a\u3001\u60c5\u5831\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u30bb\u30eb\u5185\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u52b9\u7387\u7684\u306b\u7f6e\u304d\u63db\u3048\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3084\u3001\u7279\u5b9a\u306e\u66f8\u5f0f\u8a2d\u5b9a\u6a19\u6e96\u3092\u6e80\u305f\u3059\u3088\u3046\u306b\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5909\u63db\u3059\u308b\u969b\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<h3><strong>2. REGEX \u30d1\u30bf\u30fc\u30f3\u304c\u6b63\u3057\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b?<\/strong><\/h3>\n<p>\u5225\u306e REGEX \u30c4\u30fc\u30eb\u3067 REGEX \u30d1\u30bf\u30fc\u30f3\u3092\u30c6\u30b9\u30c8\u3059\u308b\u304b\u3001\u30aa\u30f3\u30e9\u30a4\u30f3 REGEX \u30c6\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Excel \u306b\u9069\u7528\u3059\u308b\u524d\u306b\u7cbe\u5ea6\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u69cb\u6587\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u5358\u7d14\u306a\u30d1\u30bf\u30fc\u30f3\u304b\u3089\u59cb\u3081\u3066\u5f90\u3005\u306b\u8907\u96d1\u3055\u3092\u5897\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><strong>3. \u96fb\u8a71\u756a\u53f7\u4ee5\u5916\u306e\u7570\u306a\u308b\u30bf\u30a4\u30d7\u306e\u30c7\u30fc\u30bf\u306b REGEX \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304b?<\/strong><\/h3>\n<p>\u3082\u3061\u308d\u3093\u3067\u3059! REGEX \u306f\u6c4e\u7528\u6027\u304c\u9ad8\u304f\u3001\u96fb\u5b50\u30e1\u30fc\u30eb \u30a2\u30c9\u30ec\u30b9\u3001URL\u3001\u88fd\u54c1\u30b3\u30fc\u30c9\u3001\u8a8d\u8b58\u53ef\u80fd\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u5f93\u3046\u30c6\u30ad\u30b9\u30c8\u6587\u5b57\u5217\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf \u30bf\u30a4\u30d7\u3092\u8b58\u5225\u3001\u62bd\u51fa\u3001\u307e\u305f\u306f\u7f6e\u63db\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/allthings.how\/how-to-use-the-regex-functions-in-excel\/\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">\u51fa\u5178\u3068\u753b\u50cf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2024 \u5e74\u3001Microsoft \u306f\u6b63\u898f\u8868\u73fe (REGEX) \u3092\u4e2d\u5fc3\u3068\u3057\u305f 3 \u3064\u306e\u5f37\u529b\u306a\u95a2\u6570\u3092\u5c0e\u5165\u3057\u3001Excel \u306e\u6a5f\u80fd\u3092\u5f37\u5316\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u3001\u3064\u307e\u308a REGEXTEST\u3001REGEXEXTRACT\u3001\u304a\u3088\u3073 REGEXREPLACE \u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u8907\u96d1\u306a\u30c7\u30fc\u30bf \u30d1\u30bf\u30fc\u30f3\u3092\u52b9\u7387\u7684\u306b\u8b58\u5225\u3001\u62bd\u51fa\u3001\u7f6e\u63db\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f Excel Web \u30d0\u30fc\u30b8\u30e7\u30f3\u3068 Microsoft 365 \u5185\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c\u304c\u5927\u5e45\u306b\u5f37\u5316\u3055\u308c\u307e\u3059\u3002 Excel \u306e REGEX \u95a2\u6570\u3092\u7406\u89e3\u3059\u308b \u6b63\u898f\u8868\u73fe\u306f\u3001\u691c\u7d22\u30d1\u30bf\u30fc\u30f3\u3092\u5f62\u6210\u3059\u308b\u6587\u5b57\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u3042\u308a\u3001\u8a73\u7d30\u306a\u30c7\u30fc\u30bf\u5206\u6790\u3092\u5bb9\u6613\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001Excel \u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5\u3092\u5909\u9769\u3057\u3001\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3001\u62bd\u51fa\u3001\u5909\u66f4\u306a\u3069\u306e\u30bf\u30b9\u30af\u3092\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u3067\u76f4\u611f\u7684\u306a\u3082\u306e\u306b\u3057\u307e\u3059\u3002 REGEXTEST\u95a2\u6570\u3092\u6d3b\u7528\u3059\u308b REGEXTEST \u95a2\u6570\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u304c\u30c6\u30ad\u30b9\u30c8\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u691c\u51fa\u3057\u3001TRUE \u307e\u305f\u306f FALSE \u306e\u51fa\u529b\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u95a2\u6570\u306e\u69cb\u6587\u306f \u3067\u3059REGEXTEST(value, pattern, [case_sensitive])\u3002\u3053\u3053\u3067\u3001value\u306f\u30c6\u30b9\u30c8\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30c6\u30ad\u30b9\u30c8\u3001pattern\u306f\u691c\u7d22\u5bfe\u8c61\u306e REGEX \u30d1\u30bf\u30fc\u30f3\u3001\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002 \u305f\u3068\u3048\u3070\u3001\u88fd\u54c1\u30b3\u30fc\u30c9\u307e\u305f\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u30b3\u30fc\u30c9\u3092\u542b\u3080 Excel \u30b7\u30fc\u30c8\u3092\u5206\u6790\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u30b3\u30fc\u30c9\u306b\u6570\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30bb\u30eb C4 \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059=REGEXTEST(A4, &#8220;[0-9]&#8221;)\u3002 \u30b3\u30fc\u30c9\u306b\u6570\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u51fa\u529b\u306b\u306f\u300cTRUE\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u3053\u308c\u3092\u4ed6\u306e\u30bb\u30eb\u306b\u8907\u88fd\u3059\u308b\u306b\u306f\u3001\u6570\u5f0f\u30bb\u30eb\u306e\u9685\u306b\u3042\u308b\u5857\u308a\u3064\u3076\u3057\u30cf\u30f3\u30c9\u30eb\u3092\u3064\u304b\u3093\u3067\u4e0b\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u3001\u96a3\u63a5\u3059\u308b\u30bb\u30eb\u3092\u81ea\u52d5\u5165\u529b\u3057\u307e\u3059\u3002 \u96fb\u8a71\u756a\u53f7\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6b21\u3092\u4f7f\u7528\u3057\u307e\u3059=REGEXTEST(A4, &#8220;\\(?\\d{3}\\)?[-.\\s]?\\d{4}&#8221;)\u3002 \u524d\u3068\u540c\u69d8\u306b\u3001\u30cf\u30f3\u30c9\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u8ffd\u52a0\u306e\u30bb\u30eb\u306b\u9069\u7528\u3057\u307e\u3059\u3002 REGEXEXTRACT \u306b\u3088\u308b\u30c6\u30ad\u30b9\u30c8\u306e\u62bd\u51fa REGEXEXTRACT \u95a2\u6570\u306f\u3001\u7279\u5b9a\u306e\u5024\u304b\u3089\u7279\u5b9a\u306e\u30c6\u30ad\u30b9\u30c8 \u30bb\u30b0\u30e1\u30f3\u30c8\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u69cb\u6587\u306f \u3067\u3059REGEXEXTRACT(value, pattern, [first_match], [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[127,284],"class_list":["post-7534","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-microsoft","tag-microsoft-excel"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/7534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/comments?post=7534"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/7534\/revisions"}],"predecessor-version":[{"id":7535,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/posts\/7534\/revisions\/7535"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/media?parent=7534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/categories?post=7534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/ja\/wp-json\/wp\/v2\/tags?post=7534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}