Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » parsing   (RSS)

.NET Regular Expressions: Regex and Balanced Matching [Ryan Byington]

One of the questions that seems to come up a lot is that someone wants to match balanced parenthesis. Something like the string “(aa (bbb) (bbb) aa)” and they want to match from the beginning parenthesis to the matching end parenthesis. Generally this
Posted by BCLTeam | 6 Comments
Filed under:

.NET Regular Expressions: how to use RegexOptions.IgnorePatternWhitspace [Ryan Byington]

The IgnorePatternWhitespace option tells the Regex parser to ignore any spaces or tabs in your expression except if it is in a character class(ie [ ]). At first this may not seem all that useful but it really can increase the readability of a regular
Posted by BCLTeam | 4 Comments
Filed under:

New Format on the Block [Anthony Moore]

One thing that has not changed much in Whidbey is the set of format strings used by base data types for parsing and formatting. However, there is one new format element supported by the DateTime class that can be very useful if you use the ParseExact
Posted by BCLTeam | 0 Comments
Filed under: ,

How to Work Around Problems Serializing DateTime in XML [Anthony Moore]

I wrote a while ago about problems with the way DateTime worked with features like DataSet, XML Serialization (WebServices) and XmlConvert. Basically, DateTime is always treated as a local time by these XML-based systems, which means that you get incorrect
Posted by BCLTeam | 7 Comments
Filed under: , , ,

Regex hangs with my expression [David Gutierrez]

Well, actually, it doesn't hang. It just takes a really really long time, and you haven't waited long enough for it to finish. One of the pitfalls with regular expression is that you can write expressions which don't perform very well. In particular,
Posted by BCLTeam | 8 Comments
Filed under:

DateTime Parsing and Formatting with Time Zones [Anthony Moore]

Here is a new DateTim FAQ entry. What is the relationship between DateTime parsing and formatting and the time zone? Before reading below, see this entry for a more practical description of how to using formatting and parsing for the purposes of storing
Posted by BCLTeam | 7 Comments
Filed under: ,

Regular Expression performance [David Gutierrez]

I often get questions about Regex and what the RegexOptions.Compiled flag actually does. There are in fact three different modes that Regex can work in: interpreted (without the compiled flag), compiled on the fly (with the compiled flag), and precompiled
Posted by BCLTeam | 6 Comments
Filed under:

Kick Off the Blog with a TryParse sample!

Blog Kick-Off with a TryParse Sample
Posted by BCLTeam | 7 Comments
Filed under: ,
 
Page view tracker