Home Dashboard Directory Help
Search

Regular Expression (Regex) Improvements - Null Value Ignore by OmegaMan


Status: 

Resolved
 as External Help for as External


1
1
Sign in
to vote
Type: Suggestion
ID: 278550
Opened: 5/25/2007 9:37:12 AM
Access Restriction: Public
0
Workaround(s)
view

Description

When doing a regular expression a user may get confused by the null/empty valid matches. It would be nice if there was a regular expression option such as IgnoreNullMatchesAndCaptures where any match that was null or subgroup capture that was null was not reported. If that bubbles up to where there is no data at all, then a match is not reported. If a capture has other siblings, only the null value is not returned and the siblings are faithfully reported.
Details
Sign in to post a comment.
Posted by Microsoft on 8/28/2007 at 10:37 AM
Thanks for the feature request!

An IgnoreNullMatchesAndCaptures would be useful to add to Regex. We'll consider this for the next release of the .NET Framework after .NET 3.5.

Regards,
Justin Van Patten
CLR Program Manager
Sign in to post a workaround.