You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pattern Literal is a simple object that has two types: text and type. This object can also be represented by an array of two lengths, followed by text and type.
The following three types are available.
"text" - Plain text
"ignorecase" - Plain text, not case-sensitive
"regex" - regular expression
Other than that, I plan to implement "wildcard" if there is demand.
Usually, InStr is used to search for text, and RegExMatch is used to search for regular expressions.
Pattern Literal provides a way for the user to control these types of text matching. This allows we to combine the above functions into one.
The following is a function to search for strings using pattern literal.
Pattern Literal is a simple object that has two types: text and type. This object can also be represented by an array of two lengths, followed by text and type.
The following three types are available.
"text"
- Plain text"ignorecase"
- Plain text, not case-sensitive"regex
" - regular expressionOther than that, I plan to implement "wildcard" if there is demand.
The following is an example of use.
There is a special format for "regex", which can be specified as
"/REGEX/FLAGS"
.The text was updated successfully, but these errors were encountered: