Skip to content
Reference > Methods

strMatchesFilter(text,pattern)

Definition

Boolean strMatchesFilter(String text, String pattern)

Description

Returns true if the text matches the pattern, false otherwise.

Parameter Definition

Name Type Description
text String String to evaluate
pattern String pattern

Examples

1
2
3
Boolean r1 = strMatchesFilter("this","*is"); // r1 == true
Boolean r2 = strMatchesFilter("this","THIS"); // r2 == true
Boolean r3 = strMatchesFilter("this",""); // r3 == false