matchStart

matchStart

Syntax

matchStart(input, regex)

Package


Alias


Pkg Usage


Description

Returns the position where the match starts or -1 if it doesn't match.

Parameters

Parameter name

Type

Required

Description

input

String

Yes

Specifies a character expression to match the regex against.

regex

String

Yes

Specifies a regular expression to match the specified string.

Return Type

Number

Example

wret = matchStart("This will return ?", "will.*"); print("Return " + wret);

Matches the string starting with will and will return 5 (the position of w character).



For more information on regular expressions, see Oracle documentation.



See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.