Regular Expressions
Discuss and ask questions concerning the usage of Regular Expressions (REGEXes) in the .NET Framework.
공지 사항
Regex Meets Linq
OmegaManMVP2009년 2월 4일 수요일 오후 5:16If you love Regex...then Regex and Linq is a match made in Heaven. Here are two scenarios where Regex and linq can be used together.- Place Key Value Pairs into a dictionary<string,string> object from regex: Regex To Linq to Dictionary in C#
Here is a quick example where this input "123abcd3" will tokenized into digits or characters and placed into an IEnumerable array with values of "123", "abcd" and "3".
The tokenization will occur and the named match Tokens will contain sub captures. Those captures will be enumerated and placed into an IEnumerable <string> array.string input = "123abcd3"; string pattern = @"(?<Tokens>\d+|[a-zA-Z]+)+"; var items = from Match m in Regex.Matches( input, pattern ) from Capture cpt in m.Groups["Tokens"].Captures select cpt.Value; Console.WriteLine( string.Join( ",", items.ToArray() ) ); // Outputs // 123,abcd,3
This should get you started in using Linq with Regex. GL HTH
필터링 및 정렬토론 목록의 범위를 좁히려면 이러한 옵션을 사용하십시오.
- 172087

How to: Verify That Strings Are in Valid E-Mail Format
NastyBastard 2009년 5월 28일 목요일 오후 10:39 - 699

Regex Substraction of Character Set
xalnix 2009년 8월 13일 목요일 오후 8:34 - 133186

Does VS have a customized RegEx?
JohnGrove 2009년 5월 12일 화요일 오후 9:58 - 210107

Visual Studio 200X (IDE) - Regular Expressions
OmegaManMVP2007년 1월 31일 수요일 오후 10:59 - 013688

.Net Regex Resources Reference
OmegaManMVP2007년 1월 19일 금요일 오후 7:51 - 3188

split string logic
a.Net_Phoenix 2009년 11월 24일 화요일 오전 9:57 - 10194

Regular Expression to restrict exe and batch file
meetjaydeep3 2009년 11월 23일 월요일 오전 9:27 - 174

regex to exclude integer in URL greater than
julsbarnes 2009년 11월 26일 목요일 오후 12:24 - 299

Regex that excludes specified entrance
Senglory 2009년 11월 25일 수요일 오후 9:16 - 194

Regex Searches
GameboyHippo 2009년 11월 22일 일요일 오후 9:51 - 2134

Regular expression: String start with <div> end with <br /> or </div> which ever comes first
sky789 2009년 11월 20일 금요일 오후 5:02 - 7422

Match Values inside Tags as
MAbshir 2009년 10월 27일 화요일 오후 2:23 - 4201

Regular Expression Grouping
Cleyton Jordan 2009년 11월 20일 금요일 오후 2:48 - 1111

finding strings that start with "(" .. regex match not working
JCNET 2009년 11월 19일 목요일 오후 12:26 - 3193

How to make regex for specific needs?
Saad Khan 2009년 11월 17일 화요일 오후 7:20 - 2149

SSRS reporting VB script regex help
JnewBee 2009년 11월 17일 화요일 오전 4:27 - 7394

RegEx maximum length doesnt work for me.
Werner Clausen 2009년 10월 28일 수요일 오전 10:46 - 6241

Removing certain spaces in a text
ofireps 2009년 11월 9일 월요일 오후 4:42 - 1162

regular expression to accept either 6 or 9 length digits [and ignore leading and trailing spaces]
Kamran Shahid 2009년 11월 15일 일요일 오후 8:07 - 1159

How To Exclude an Email Domain using CreateUserWizard?
Tim Hirtle 2009년 11월 14일 토요일 오후 9:27

