Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PatternMatchUtils.SimpleMatch(String, String) Method

Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality.

[Visual Basic]
Public Overloads Shared Sub SimpleMatch( _
   ByVal pattern As String, _
   ByVal str As String _
)
[C#]
public static bool SimpleMatch(
   string pattern,
   string str
);

Parameters

pattern
the pattern to match against
str
the String to match

Return Value

whether the String matches the given pattern

See Also

PatternMatchUtils Class | Spring.Util Namespace | PatternMatchUtils.SimpleMatch Overload List