Link Search Menu Expand Document

RegexMatcher.LookingAt Method

Explanation Matches the regular expression pattern from the beginning of the input string.

It does not have to match the entire input string.

If the match is successful, you can use the Start, End, Group methods to get more information.
Call format var b = rm.LookingAt( )
Return value $ TRUE if it matches the regular expression pattern from the beginning of the input string, $ FALSE if not
Arguments None
Exception None
Example of use
var m = RegexPattern.Compile("Biz/([a-zA-Z])+").Matcher("Biz/Browser, Biz/Desginer");
if (m.LookingAt()) {
    print(m.Start(1), m.End(1), m.Group(1), "\n");
}
    
Related item Start, End, Group methods