Regular Expressions
Discuss and ask questions concerning the usage of Regular Expressions (REGEXes) in the .NET Framework.
Comunicados
Regex Meets Linq
OmegaManMVPquarta-feira, 4 de fevereiro de 2009 17: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
Filtragem e ClassificaçãoUse essas opções para refinar a lista de discussão.
- 172082

How to: Verify That Strings Are in Valid E-Mail Format
NastyBastard quinta-feira, 28 de maio de 2009 22:39 - 697

Regex Substraction of Character Set
xalnix quinta-feira, 13 de agosto de 2009 20:34 - 133180

Does VS have a customized RegEx?
JohnGrove terça-feira, 12 de maio de 2009 21:58 - 210100

Visual Studio 200X (IDE) - Regular Expressions
OmegaManMVPquarta-feira, 31 de janeiro de 2007 22:59 - 013680

.Net Regex Resources Reference
OmegaManMVPsexta-feira, 19 de janeiro de 2007 19:51 - 3172

split string logic
a.Net_Phoenix terça-feira, 24 de novembro de 2009 9:57 - 10191

Regular Expression to restrict exe and batch file
meetjaydeep3 segunda-feira, 23 de novembro de 2009 9:27 - 172

regex to exclude integer in URL greater than
julsbarnes quinta-feira, 26 de novembro de 2009 12:24 - 298

Regex that excludes specified entrance
Senglory quarta-feira, 25 de novembro de 2009 21:16 - 192

Regex Searches
GameboyHippo domingo, 22 de novembro de 2009 21:51 - 2131

Regular expression: String start with <div> end with <br /> or </div> which ever comes first
sky789 sexta-feira, 20 de novembro de 2009 17:02 - 7418

Match Values inside Tags as
MAbshir terça-feira, 27 de outubro de 2009 14:23 - 4199

Regular Expression Grouping
Cleyton Jordan sexta-feira, 20 de novembro de 2009 14:48 - 1110

finding strings that start with "(" .. regex match not working
JCNET quinta-feira, 19 de novembro de 2009 12:26 - 3189

How to make regex for specific needs?
Saad Khan terça-feira, 17 de novembro de 2009 19:20 - 2148

SSRS reporting VB script regex help
JnewBee terça-feira, 17 de novembro de 2009 4:27 - 7389

RegEx maximum length doesnt work for me.
Werner Clausen quarta-feira, 28 de outubro de 2009 10:46 - 6239

Removing certain spaces in a text
ofireps segunda-feira, 9 de novembro de 2009 16:42 - 1160

regular expression to accept either 6 or 9 length digits [and ignore leading and trailing spaces]
Kamran Shahid domingo, 15 de novembro de 2009 20:07 - 1158

How To Exclude an Email Domain using CreateUserWizard?
Tim Hirtle sábado, 14 de novembro de 2009 21:27

