AutolinkParser
in package
implements
InlineParserInterface
FinalYes
Table of Contents
Interfaces
Constants
- EMAIL_REGEX = '<([a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>'
- OTHER_LINK_REGEX = '<([A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*)>'
Methods
- getMatchDefinition() : InlineParserMatch
- parse() : bool
Constants
EMAIL_REGEX
private
mixed
EMAIL_REGEX
= '<([a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>'
OTHER_LINK_REGEX
private
mixed
OTHER_LINK_REGEX
= '<([A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*)>'
Methods
getMatchDefinition()
public
getMatchDefinition() : InlineParserMatch
Return values
InlineParserMatchparse()
public
parse(InlineParserContext $inlineContext) : bool
Parameters
- $inlineContext : InlineParserContext