{"id":1844,"date":"2013-01-24T12:53:44","date_gmt":"2013-01-24T03:53:44","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=1844"},"modified":"2018-06-05T15:19:53","modified_gmt":"2018-06-05T06:19:53","slug":"c-%eb%ac%b8%ec%9e%90%ec%97%b4-%ec%9e%91%ec%97%85-%ed%8c%8c%ec%8b%b1parsing-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=1844","title":{"rendered":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218"},"content":{"rendered":"<p>1. \uc120\uc5b8<\/p>\n<pre class=\"lang:c# decode:true \" >string str = \"\ubb38\uc790\uc744 \uc120\uc5c5\ud569\ub2c8\ub2e4\";<\/pre>\n<p>2. \ubb38\uc790\uc5f4 \ucd94\uac00<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nstring str =\"\ub9cc\uc138\";\r\nstr = str.Insert(0,\"\ub300\ud55c\ubbfc\uad6d \");\r\n\r\nstr = str.Insert(str.Length,\" \uc785\ub2c8\ub2e4.\");\r\nConsole.WriteLine(str2); \/\/test\r\nConsole.ReadLine(); \/\/test\r\n\/\/\uacb0\uacfc =&gt; \ub300\ud55c\ubbfc\uad6d \ub9cc\uc138 \uc785\ub2c8\ub2e4.\r\nstring str2 =String.Concat(\"\ub300\",\"\ud55c\",\"\ubbfc\",\"\uad6d\");\r\n\/\/\uacb0\uacfc \ub300\ud55c\ubbfc\uad6d\r\n<\/pre>\n<p>3. \uacf5\ubc31\ucc98\ub9ac<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nstring str = \" \u00a0\ub300\ud55c\ubbfc\uad6d \u00a0\";\r\nstr = str.TrimStart(); \/\/ \uc55e(\uc67c\ucabd)\ucabd \ubb38\uc790\uc5f4 \uc0ad\uc81c\r\nstr = str.TrimEnd(); \/\/ \ub4a4(\uc624\ub978\ucabd)\ucabd \ubb38\uc790\uc5f4 \uc0ad\uc81c\r\nstr = str.Trim(); \/\/ \uc591\ucabd \ubb38\uc790\uc5f4 \uc0ad\uc81c\r\n<\/pre>\n<p>4.\ubb38\uc790\uc5f4 \u00a0\ucc3e\uc544\uc11c \ubb38\uc790\uc5f4 \uc790\ub974\uae30\u00a0\ud30c\uc2f1(Parsing)<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nIndexOf( \"\uac80\uc0c9\ud560 \ubb38\uc790\uc5f4\" );\r\nLastIndexOf( \"\uac80\uc0c9\ud560 \ubb38\uc790\uc5f4\" );\r\nSubstring( \uc790\ub97c \uc704\uce58 \ucca8\uc790 );\r\nSubstring( \uc790\ub97c \uc704\uce58 \ucca8\uc790, \ucca8\uc790\uc5d0\uc11c \uc790\ub97c \ub9cc\ud07c\uc758 \uae38\uc774 );\r\n<\/pre>\n<p>5. Split (\ubd84\ub9ac) \uc2dc\ud0a4\uae30<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nstring str = \"\uac00,\ub098,\ub2e4,\ub77c,\ub9c8\";\r\nstring [] result = str.Split(',');\r\n<\/pre>\n<p>6. Replace(\ubcc0\ud658)<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nstring str = \"\ub300\ud55c\ubbfc\uad6d\\r\\n\ub9cc\uc138\";\r\nstr = str.Replace( \"\\r\\n\", \"&lt;br&gt;\" );\r\n<\/pre>\n<p>7. \uc778\ub371\uc2a4(Index)\ub85c \ucd94\ucd9c\ud558\uae30<\/p>\n<pre class=\"lang:c# decode:true \" >\r\nstring str = \"\ub300\ud55c\ubbfc\uad6d\";\r\nConsole.WriteLine(str[1]); \r\nConsole.ReadLine(); \r\n\/\/ '\ud55c' \ucd9c\ub825\r\n<\/pre>\n<pre class=\"lang:c# decode:true \" >\r\nCompareTo \/\/\ud2b9\uc815 \uac1d\uccb4\uc640 \ube44\uad50\r\nCopyTo \/\/\uac1d\uccb4 \ubcf5\uc0ac\r\nEndsWith \/\/\ud2b9\uc815 \ubb38\uc790\uc5f4\ub85c \ub05d\ub098\ub294\uc9c0\ub97c \ud655\uc778\r\nEquals \/\/\ube44\uad50 \uc5f0\uc0b0\r\nGetEnumerator \/\/IEnumerator \uc778\ud130\ud398\uc774\uc2a4 \ubc18\ud658\r\nGetHashCode \/\/\ud574\uc26c \ucf54\ub4dc \ubc18\ud658\r\nGetType \/\/\ud615\uc2dd \uc815\ubcf4 \ubc18\ud658\r\nGetTypeCode \/\/TypeCode \ubc18\ud658\r\nIndexOf \/\/\ubb38\uc790\uc5f4 \uac80\uc0c9\r\nIndexOfAny \/\/\uc720\ub2c8\ucf54\ub4dc \ubb38\uc790\uc5f4\uc5d0\uc11c \uba3c\uc800 \ub098\uc624\ub294 \ubb38\uc790 \ubc18\ud658\r\nInsert \/\/\ubb38\uc790\uc5f4 \uc0bd\uc785\r\nLastIndexOf \/\/IndexOf\ub97c \ub4a4\uc5d0\uc11c\ubd80\ud130 \uc218\ud589\r\nLastIndexOfAny \/\/IndexOfAny\ub97c \ub4a4\uc5d0\uc11c\ubd80\ud130 \uc218\ud589\r\nPadLeft \/\/\ubb38\uc790\uc5f4\uc5d0\uc11c \ub0a8\uc544\uc788\ub294 \uc67c\ucabd\uc744 \ube48 \uacf5\ubc31\uc73c\ub85c \ucc44\uc6c0\r\nPadRight \/\/\ubb38\uc790\uc5f4\uc5d0\uc11c \ub0a8\uc544\uc788\ub294 \uc624\ub978\ucabd\uc744 \ube48 \uacf5\ubc31\uc73c\ub85c \ucc44\uc6c0\r\nRemove \/\/\uc9c0\uc815 \uac1c\uc218\uc758 \ubb38\uc790 \uc81c\uac70\r\nReplace \/\/\ubb38\uc790\uc5f4 \uce58\ud658\r\nSplit \/\/\ubb38\uc790\uc5f4 \ubd84\ub9ac\ud558\uc5ec \ubc30\uc5f4\ub85c \ubc18\ud658\r\nStartsWith \/\/\ud2b9\uc815 \ubb38\uc790\ub85c \uc2dc\uc791\ud558\ub294\uc9c0\ub97c \ud655\uc778\r\nSubstring \/\/\ubb38\uc790\uc5f4 \ucd94\ucd9c\r\nToCharArray \/\/\ubb38\uc790 \ubc30\uc5f4\ub85c \ubcc0\ud658\r\nToLower \/\/\uc18c\ubb38\uc790\ub85c \ubcc0\ud658\r\nToString \/\/\uac1d\uccb4\ub97c \ub098\ud0c0\ub0b4\ub294 \ubb38\uc790\uc5f4 \ubc18\ud658\r\nToUpper \/\/\ub300\ubb38\uc790\ub85c \ubcc0\ud658\r\nTrim \/\/\uc591\ucabd \uacf5\ubc31 \uc5c6\uc570\r\nTrimEnd \/\/\ubb38\uc790\uc5f4 \ub05d \ubd80\ubd84\uc758 \uacf5\ubc31 \uc5c6\uc570\r\nTrimStart \/\/\ubb38\uc790\uc5f4 \uc2dc\uc791 \ubd80\ubd84\uc758\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>1. \uc120\uc5b8 string str = &#8220;\ubb38\uc790\uc744 \uc120\uc5c5\ud569\ub2c8\ub2e4&#8221;; 2. \ubb38\uc790\uc5f4 \ucd94\uac00 string str =&#8221;\ub9cc\uc138&#8221;; str = str.Insert(0,&#8221;\ub300\ud55c\ubbfc\uad6d &#8220;); str = str.Insert(str.Length,&#8221; \uc785\ub2c8\ub2e4.&#8221;); Console.WriteLine(str2); \/\/test Console.ReadLine(); \/\/test <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1844\" title=\"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-1844","post","type-post","status-publish","format-standard","hentry","category-devc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.auctionpro.co.kr\/?p=1844\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro\" \/>\n<meta property=\"og:description\" content=\"1. \uc120\uc5b8 string str = &quot;\ubb38\uc790\uc744 \uc120\uc5c5\ud569\ub2c8\ub2e4&quot;; 2. \ubb38\uc790\uc5f4 \ucd94\uac00 string str =&quot;\ub9cc\uc138&quot;; str = str.Insert(0,&quot;\ub300\ud55c\ubbfc\uad6d &quot;); str = str.Insert(str.Length,&quot; \uc785\ub2c8\ub2e4.&quot;); Console.WriteLine(str2); \/\/test Console.ReadLine(); \/\/test [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.auctionpro.co.kr\/?p=1844\" \/>\n<meta property=\"og:site_name\" content=\"AuctionPro\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-24T03:53:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-05T06:19:53+00:00\" \/>\n<meta name=\"author\" content=\"golgol\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"golgol\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844\"},\"author\":{\"name\":\"golgol\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"headline\":\"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\\\/\\\/ \ud30c\uc2f1(Parsing) \ud568\uc218\",\"datePublished\":\"2013-01-24T03:53:44+00:00\",\"dateModified\":\"2018-06-05T06:19:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844\"},\"wordCount\":6,\"commentCount\":0,\"articleSection\":[\"[Dev]C#\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844\",\"name\":\"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\\\/\\\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\"},\"datePublished\":\"2013-01-24T03:53:44+00:00\",\"dateModified\":\"2018-06-05T06:19:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=1844#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\\\/\\\/ \ud30c\uc2f1(Parsing) \ud568\uc218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\",\"name\":\"AuctionPro\",\"description\":\"\uc625\uc158\ud504\ub85c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\",\"name\":\"golgol\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?author=6\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.auctionpro.co.kr\/?p=1844","og_locale":"ko_KR","og_type":"article","og_title":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro","og_description":"1. \uc120\uc5b8 string str = \"\ubb38\uc790\uc744 \uc120\uc5c5\ud569\ub2c8\ub2e4\"; 2. \ubb38\uc790\uc5f4 \ucd94\uac00 string str =\"\ub9cc\uc138\"; str = str.Insert(0,\"\ub300\ud55c\ubbfc\uad6d \"); str = str.Insert(str.Length,\" \uc785\ub2c8\ub2e4.\"); Console.WriteLine(str2); \/\/test Console.ReadLine(); \/\/test [...]","og_url":"https:\/\/www.auctionpro.co.kr\/?p=1844","og_site_name":"AuctionPro","article_published_time":"2013-01-24T03:53:44+00:00","article_modified_time":"2018-06-05T06:19:53+00:00","author":"golgol","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"golgol","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.auctionpro.co.kr\/?p=1844#article","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1844"},"author":{"name":"golgol","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"headline":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218","datePublished":"2013-01-24T03:53:44+00:00","dateModified":"2018-06-05T06:19:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1844"},"wordCount":6,"commentCount":0,"articleSection":["[Dev]C#"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.auctionpro.co.kr\/?p=1844#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.auctionpro.co.kr\/?p=1844","url":"https:\/\/www.auctionpro.co.kr\/?p=1844","name":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218 - AuctionPro","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/#website"},"datePublished":"2013-01-24T03:53:44+00:00","dateModified":"2018-06-05T06:19:53+00:00","author":{"@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"breadcrumb":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=1844#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.auctionpro.co.kr\/?p=1844"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.auctionpro.co.kr\/?p=1844#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/www.auctionpro.co.kr\/"},{"@type":"ListItem","position":2,"name":"C# \ubb38\uc790\uc5f4 \uc791\uc5c5\/\/ \ud30c\uc2f1(Parsing) \ud568\uc218"}]},{"@type":"WebSite","@id":"https:\/\/www.auctionpro.co.kr\/#website","url":"https:\/\/www.auctionpro.co.kr\/","name":"AuctionPro","description":"\uc625\uc158\ud504\ub85c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.auctionpro.co.kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2","name":"golgol","url":"https:\/\/www.auctionpro.co.kr\/?author=6"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1844"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1844\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}