Tag: string
Using wild card to look up in a string C#
This is the class that can be used to look up a keyword from a string. This class is inherited from Regex class.
Base Class
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public class ProductLookupRegex : Regex
{
public ProductLookupRegex()
{
//
// TODO: Add constructor logic here
//
}
///
/// Initializes a wildcard with the given search pattern.
///
///
The wildcard pattern to match.
public ProductLookupRegex(string pattern) : base(WildcardToRegex(pattern))
{
}
///
/// Initializes a [...]
Posted: August 29th, 2008 under C#.
Tags: lookup, regex, search, string
Comments: none