[C#/General] RegularExpressions(정규식) Match 기능


[C#/General] RegularExpressions(정규식) Match 기능

> Pattern 설명 CodeKiller\. Man "CodeKiller.Man"라는 문자열을 찾습니다. "." 문자는 모든 문자와 일치하는 와일드카드가 아닌 리터럴 마침표로 해석되도록 이스케이프됩니다. (Woman)? "Woman"이라는 0개 또는 1개의 문자열을 찾습니다. using System; using System.Text.RegularExpressions; public class Example { public static void Main() { string input = "The example test lines :" + "'CodeKiller.Man' Test line" + "'CodeKiller.Man' Test line" + "'CodeKiller.ManWoman' Test line"..


원문링크 : [C#/General] RegularExpressions(정규식) Match 기능