Click here to Skip to main content
11,477,007 members (74,406 online)
Click here to Skip to main content

Use wildcard characters * and ? to compare strings

, 9 Feb 2010 CPOL 30.8K 7
Method to compare Strings with wildcard characters:public Boolean MatchWildcardString(String pattern, String input){ if (String.Compare(pattern, input) == 0) { return true; } else if(String.IsNullOrEmpty(input)) { if...
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the String handling Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150520.1 | Last Updated 9 Feb 2010
Article Copyright 2010 by PrzemekBenz
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid