new NdnRegexComponentMatcher(expr, backrefManager, isExactMatch)
Create a RegexComponent matcher from expr.
Parameters:
Name | Type | Description |
---|---|---|
expr |
string | The standard regular expression to match a component. |
backrefManager |
NdnRegexBackrefManager | The back-reference manager. |
isExactMatch |
boolean | (optional) The flag to provide exact match. If omitted, use true. |
Methods
match(name, offset, len) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
name |
Name | |
offset |
number | |
len |
number |
Returns:
- Type
- boolean