Method RegEx():createURL() Foundation

Creates a RegEx instance for URL validation.

Syntax
:createURL( [<lStrict>] ) --> oRegEx
Parameters
<lStrict>
Specifies whether to use a general pattern for URL validation or a strict one. The parameter defaults to .F. (false), meaning a general pattern is used which is suitable for extracting URLs in free text or for quick non-critical validations.
When .T. (true) is assigned to the <lStrict> parameter, an alternative validation pattern is used which is more complex and performs validation according to RFC 3986. In this mode, the match operation is slower and more thorough. Strict mode should be used when correctness matters, for example, when validating configuration files or importing data.
Return

The pre-configured RegEx object.

Description

Factory method that creates a pre-configured RegEx object for validating URLs. Supports both simple and strict validation modes.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.