linkPatterns Property

Summary

Gets a list of the regular expressions to use when parsing links from text.

Syntax

JavaScript Syntax
Object.defineProperty(DocumentText.prototype, 'linkPatterns', 
	get: function() 
) 
TypeScript Syntax
static linkPatterns: any[]; // read-only 

Property Value

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.

Remarks

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.

Example

For an example, refer to GetLinks

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents Assembly