{"id":157,"date":"2014-11-10T09:00:55","date_gmt":"2014-11-10T00:00:55","guid":{"rendered":"http:\/\/www.ois-yokohama.co.jp\/oisblog\/?p=157"},"modified":"2022-09-21T18:19:26","modified_gmt":"2022-09-21T09:19:26","slug":"%e6%ad%a3%e8%a6%8f%e8%a1%a8%e7%8f%be%e8%ac%9b%e5%ba%a7-net-framework%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/archives\/157","title":{"rendered":"\u6b63\u898f\u8868\u73fe\u8b1b\u5ea7  .Net Framework\u7248"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"145\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2020\/12\/ois_logo-a.jpg\" class=\"attachment-large size-large wp-post-image\" alt=\"\u682a\u5f0f\u4f1a\u793e\u30aa\u30ea\u30a8\u30f3\u30bf\u30eb\u30a4\u30f3\u30d5\u30a9\u30fc\u30e1\u30a4\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2020\/12\/ois_logo-a.jpg 318w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2020\/12\/ois_logo-a-300x137.jpg 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/div>\n<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u6b63\u898f\u8868\u73fe\u306f\u3001\u5b9f\u88c5\u8a00\u8a9e\u306b\u3088\u308a\u82e5\u5e72\u306e\u5dee\u7570\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u672c\u7a3f\u3067\u306f\u3001.Net Framework\u306eSystem.Text.RegularExpression.Regex\u306e\u6b63\u898f\u8868\u73fe\u3092\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u6b63\u898f\u8868\u73fe\u306e\u5834\u5408\u3001\u4f7f\u3048\u308b\u3082\u306e\u30fb\u4f7f\u3048\u306a\u3044\u3082\u306e\u306b\u5fae\u5999\u306a\u5dee\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b\u984c\u3067\u306f\u3001Powershell\u3092\u4f7f\u3046\u60f3\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u308f\u304b\u308a\u3084\u3059\u3055\u306e\u305f\u3081\u306b\u3001\u4e00\u90e8\u4e0d\u6b63\u78ba\u306a\u8868\u73fe\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u306f\u3054\u5bb9\u8d66\u9858\u3044\u307e\u3059\u3002<\/p>\n<h1>\u6b63\u898f\u8868\u73fe\u306e\u57fa\u672c<\/h1>\n<p>\u6b63\u898f\u8868\u73fe\u3068\u306f\u3001\u6587\u5b57\u5217\u3092\u7167\u5408\u3059\u308b\u305f\u3081\u306e\u8868\u73fe\u3067\u3059\u3002<br \/>\n\u56fa\u5b9a\u306e\u6587\u5b57\u5217\u3067\u3042\u308b\u304b\u3092\u5224\u5b9a\u3059\u308b\u5834\u5408\u3001==\u7b49\u306e\u8a00\u8a9e\u56fa\u6709\u306e\u6f14\u7b97\u5b50\u3067\u5224\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u304c\u3001\u300cabc\u300d\u300cabd\u300d\u306e\u3044\u305a\u308c\u304b\u306e\u5224\u5b9a\u3068\u306a\u308b\u3068\u3001OR\u7b49\u3092\u4f7f\u7528\u3057\u3066\u8907\u6570\u6761\u4ef6\u3092\u66f8\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6761\u4ef6\u304c\u4e8c\u500b\u3067\u3042\u308c\u3070OR\u3067\u3064\u306a\u3044\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u3082\u3063\u3068\u591a\u3044\u3001\u4f8b\u3048\u3070\u300cab\u3067\u59cb\u307e\u308b3\u6587\u5b57\u4ee5\u4e0a\u3092\u542b\u3080\u6587\u5b57\u5217\u304b\uff1f\u300d\u3068\u3044\u3063\u305f\u6761\u4ef6\u3068\u306a\u308b\u3068\u3001\u9762\u5012\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u89e3\u6d88\u3059\u308b\u306e\u304c\u3001\u6b63\u898f\u8868\u73fe\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Windows\u4ed8\u5c5e\u306ePowershell\u3067\u306f\u3001\u300c-match\u300d\u6f14\u7b97\u5b50\u3067\u7c21\u5358\u306b\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u4e00\u81f4\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\nPowershell\u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u4e00\u884c\u76ee\u306e\u3088\u3046\u306b\u300c&#8217;abc&#8217; -match &#8216;ab.&#8217;\u300d\u3068\u5165\u529b\u3059\u308b\u3068<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;abc&#8217; -match &#8216;ab.&#8217;True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u300cTrue\u300d\u3068\u304b\u3048\u3063\u3066\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001\u300cabc\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u306f\u6b63\u898f\u8868\u73fe\u300cab.\u300d\u306b\u30de\u30c3\u30c1\u3059\u308b\u304b\uff1f\u3068\u3044\u3046\u8a55\u4fa1\u3067\u3001\u300cTrue\u300d\u3059\u306a\u308f\u3061\u30de\u30c3\u30c1\u3059\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<h2>\u57fa\u672c\u30d1\u30bf\u30fc\u30f3<\/h2>\n<h3>\u30ea\u30c6\u30e9\u30eb<\/h3>\n<p>\u6587\u5b57\u305d\u306e\u3082\u306e\u3067\u3059\u3002<br \/>\n\u5927\u96d1\u628a\u306b\u8a00\u3048\u3070\u3001\u534a\u89d2\u8a18\u53f7\u4ee5\u5916\u306e\u6587\u5b57\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u6b63\u898f\u8868\u73fe\u306e\u300ca\u300d\u306f\u300ca\u300d\u3068\u3044\u3046\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u304c\u300cb\u300d\u306b\u306f\u30de\u30c3\u30c1\u3057\u307e\u305b\u3093\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;a&#8217;True<br \/>\n&gt; &#8216;b&#8217; -match &#8216;a&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u4efb\u610f\u306e\u4e00\u6587\u5b57<\/h3>\n<p>\u300c.\u300d\uff08\u30d4\u30ea\u30aa\u30c9\uff09\u306f\u3001LF(ASCII\u30b3\u30fc\u30c910\u3001Windows\u306e\u6539\u884cCRLF\u306e\u5f8c\u534a)\u3092\u9664\u304f\u4e00\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<br \/>\n\u305f\u3044\u3066\u3044\u306e\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3059\u308b\u8a18\u53f7\u3068\u3057\u3066\u899a\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;.&#8217;True<br \/>\n&gt; &#8216;b&#8217; -match &#8216;.&#8217;<br \/>\nTrue<br \/>\n&gt; &#8220;`n&#8221; -match &#8216;.&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Powershell\u306e\u5834\u5408\u3001LF\u306f\u300c&#8221;`n&#8221;\u300d\u3068\u3059\u308b\u3053\u3068\u3067\u8868\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>LF<\/h3>\n<p>\u300c\\n\u300d\u306f\u3001LF(ASCII\u30b3\u30fc\u30c910\u3001Windows\u306e\u6539\u884cCRLF\u306e\u5f8c\u534a)\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8220;`n&#8221; -match &#8216;\\n&#8217;True<br \/>\n&gt; &#8216;a&#8217; -match &#8216;\\n&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b63\u898f\u8868\u73fe\u306e\u30ea\u30c6\u30e9\u30eb\u8868\u8a18\u3068\u3057\u3066\u306f\u3001LF\u3092\u300c\\n\u300d\u3068\u3057\u3066\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<h3>\u6587\u5b57\u30b0\u30eb\u30fc\u30d7<\/h3>\n<p>\u300c[abc]\u300d\u306f\u3001\u300ca\u300d\u300cb\u300d\u300cc\u300d\u306e\u3044\u305a\u308c\u304b\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;b&#8217; -match &#8216;[abc]&#8217;True<br \/>\n&gt; &#8216;d&#8217; -match &#8216;[abc]&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u307e\u305f\u3001\u300c[a-z]\u300d\u304c\u300ca\u300d\uff5e\u300cz\u300d\u306b\u30de\u30c3\u30c1\u3059\u308b\u3088\u3046\u306b\u3001\u7bc4\u56f2\u6307\u5b9a\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;b&#8217; -match &#8216;[b-x]&#8217;True<br \/>\n&gt; &#8216;a&#8217; -match &#8216;[b-x]&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u30b0\u30eb\u30fc\u30d7\u5316<\/h3>\n<p>\u300c(abc|wxyz)\u300d\u306f\u3001\u300cabc\u300d\u304b\u300cwxyz\u300d\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u62ec\u5f27\u3092\u4f7f\u3046\u3068\u30d1\u30bf\u30fc\u30f3\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;abc&#8217; -match &#8216;(abc|wxyz)&#8217;True<br \/>\n&gt; &#8216;abw&#8217; -match &#8216;(abc|wxyz)&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>\u91cf\u6307\u5b9a<\/h2>\n<p>\u300ca*\u300d\u306f\u3001\u4efb\u610f\u500b\u306e\u300ca\u300d\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u300ca\u300d\u300caa\u300d\u300caaa\u300d&#8230;\u3001\u52a0\u3048\u3066\u9577\u30550\u306e\u6587\u5b57\u5217\u306b\u3082\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<br \/>\n\u300c*\u300d\u306f\u4efb\u610f\u500b\u306e\u76f4\u524d\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u30de\u30c3\u30c1\u3059\u308b\u6b63\u898f\u8868\u73fe\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;a*&#8217;True<br \/>\n&gt; &#8216;aa&#8217; -match &#8216;a*&#8217;<br \/>\nTrue<br \/>\n&gt; &#8221; -match &#8216;a*&#8217;<br \/>\nTrue<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u300ca?\u300d\u306f\u30010\u307e\u305f\u306f1\u500b\u306e\u300ca\u300d\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u300ca\u300d\u3068\u9577\u30550\u306e\u6587\u5b57\u5217\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<br \/>\n\u300c?\u300d\u306f0\u307e\u305f\u306f1\u500b\u306e\u76f4\u524d\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u30de\u30c3\u30c1\u3059\u308b\u6b63\u898f\u8868\u73fe\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;a?&#8217;True<br \/>\n&gt; &#8221; -match &#8216;a?&#8217;<br \/>\nTrue<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>\u30a2\u30f3\u30ab\u30fc<\/h2>\n<p>\u300c^\u300d\u306f\u3001\u5148\u982d\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u300c^a\u300d\u3067\u300ca\u300d\u304b\u3089\u59cb\u307e\u308b\u6587\u5b57\u5217\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;^a&#8217;True<br \/>\n&gt; &#8216;ba&#8217; -match &#8216;^a&#8217;<br \/>\nFalse<br \/>\n&gt; &#8216;ba&#8217; -match &#8216;a&#8217;<br \/>\nTrue<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u300c$\u300d\u306f\u3001\u672b\u5c3e\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u300ca$\u300d\u3067\u300ca\u300d\u3067\u7d42\u308f\u308b\u6587\u5b57\u5217\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"580\">&gt; &#8216;a&#8217; -match &#8216;a$&#8217;True<br \/>\n&gt; &#8216;ab&#8217; -match &#8216;a$&#8217;<br \/>\nFalse<br \/>\n&gt; &#8216;b&#8217; -match &#8216;a$&#8217;<br \/>\nFalse<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>\u4f8b\u984c<\/h2>\n<p>\u30fb\u300cWindowsXP\u300d\u300cWindowsVista\u300d\u300cWindows7\u300d\u300cWindows8\u300d\u306b\u30de\u30c3\u30c1\u3057\u3066\u300cWindows9\u300d\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u6b63\u898f\u8868\u73fe\u306f\uff1f<br \/>\n\u30fb\u5076\u6570\u306b\u30de\u30c3\u30c1\u3057\u5947\u6570\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u6b63\u898f\u8868\u73fe\u306f\uff1f\uff08\u30de\u30c3\u30c1\u5bfe\u8c61\u306f1\u3064\u306e\u6570\u5024\u3068\u3057\u307e\u3059\u3002\u4f8b\u300c12345\u300d\u300c23456\u300d\u7b49\uff09<\/p>\n<p>\u3064\u3065\u304f\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u6b63\u898f\u8868\u73fe\u306f\u3001\u5b9f\u88c5\u8a00\u8a9e\u306b\u3088\u308a\u82e5\u5e72\u306e\u5dee\u7570\u304c\u3042\u308a\u307e\u3059\u3002 \u672c\u7a3f\u3067\u306f\u3001.Net Framework\u306eSystem.Text.RegularExpression.Regex\u306e\u6b63\u898f\u8868\u73fe\u3092\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002 \u4ed6\u306e\u6b63\u898f\u8868\u73fe\u306e\u5834\u5408\u3001\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6903,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"vkexunit_cta_each_option":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engineer"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":2,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":7819,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/157\/revisions\/7819"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media\/6903"}],"wp:attachment":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}