Parse s
as a prefix matching expression with concrete syntax
Parse s
as a prefix matching expression with concrete syntax
path ::= '/' elems | '/' elems ::= elem '/' elem | elem elem ::= '*' | label label ::= (\\x[a-f0-9][a-f0-9]|[0-9A-Za-z:.#$%-_])+
for example
/foo/bar/baz /foo/*/bar/baz /
parses into the path
Prefix(Label(foo),Label(bar),Label(baz)) Prefix(Label(foo),AnyElem,Label(bar),Label(baz)) Prefix()
IllegalArgumentException
when s
is not a syntactically valid path.
Note: There is a Java-friendly API for this method: Dentry.readPrefix.