HashtagParser
An IMfmParser implementation for detecting "hashtag" syntax. Strings starting with "#" will be search results.
Notes
The content cannot be left empty.
The content cannot contain half-width spaces, full-width spaces, newlines, or tab characters.
The content cannot include . , ! ? ' " # : / 【 】 <> 【 】 ( ) 「 」 ( ).
Parentheses can only be included in the content when they come in pairs. Relevant pairs: () [] 「」 ().
Recognize as a hashtag if the character before # does not match case-insensitive.
If the content is only numbers, it will not be recognized as a hashtag.
Functions
Finds a substring in the input string starting from a given index.
Returns a negative (not) version of the current MFM parser. A negative parser will return a failure result if the substring is found.
Returns an optional version of the current substring parser. An optional parser will return a successful result even if the substring is not found.