Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(?<path>(/?(?<step>\w+))+)(?<predicate>\[(?<comparison>\s*(?<lhs>@\w+)\s*(?<operator><=|>=|<>|=|<|>)\s*(?<rhs>('[^']*'|"[^"]*"))\s*(and|or)?)+\])*$
|
Description |
Simple parser of XPath, it doesn't handle the more complex statements but can be of use in some situations.
|
Matches |
/root/child1/child2[ @param='value' ] | child1[@param >= "1" and @foo < 'asdf"
|
Non-Matches |
/root/*[ local-name() = 'child1' ][ child2/@param='value ]/child2
|
Author |
Rating:
Not yet rated.
Tim Walters
|
Displaying page
of
pages;
Items to