Gets a list of the regular expressions to use when parsing links from text.
Object.defineProperty(DocumentText.prototype, 'linkPatterns',
get: function()
)
static linkPatterns: any[]; // read-only
A list of the regular expressions (RegExp
) to use when parsing links from text. The default value is
a list containing two regular expressions: The first to parse links such as http, https, ftp, file, mailto, etc. and the second to parse
email addresses.
You can add or modify this list to control how links are parsed from text. Call ResetLinkPatterns to set the list back to the default values.
Refer to AutoParseLinks for more information.
For an example, refer to GetLinks
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET