Monday, 17 April 2017

Regular Expression to get all path nodes

Here is example of what I need

Path:

->1
->1->2
->1->3
->1->3->4
->1->3->4->5
->1->3->4->6
->1->3->4->6->7

When I pass ->1->3->4->6 to the regular expression, it needs to get all the parent and children of that node as the following output

->1
->1->3
->1->3->4
->1->3->4->6
->1->3->4->6->7



via Anonymous

No comments:

Post a Comment