new NdnRegexMatcher()
An NdnRegexMatcher has static methods to convert an NDN regex
(http://redmine.named-data.net/projects/ndn-cxx/wiki/Regex) to a JavaScript
RegExp that can match against URIs.
- Source:
Methods
(static) match(pattern, name) → {Object}
Determine if the provided NDN regex matches the given Name.
Parameters:
Name | Type | Description |
---|---|---|
pattern |
string | The NDN regex. |
name |
Name | The Name to match against the regex. |
- Source:
Returns:
The match object from String.match, or null if the pattern
does not match.
- Type
- Object