G
Greg Collins [Microsoft MVP]
I've done a bit of research on this topic in the newsgroups and on MSDN, and though it sounds possible, I still don't understand how I would make it work.
I want to be able to use named groups to capture from a path items that can be in any order.
For example, the path might be:
/root/item1/item2/item2/item3/item4
or it might be mixed up:
/root/item4/item3/item1/item2
and it is possible that certain items might not even be present:
/root/item3/item1
/root will always be present, though its name will vary depending on which type of path I am trying to match--so I'm mainly concerned with matching named groups <Item1> through <Item4> when they can appear in any order.
I'd prever to be able to do this WITHOUT needing to write an expression for each combination, as there could be upwards of 10 items I want to match (too many combinations!!)
Thanks ahead of time for your help!
I want to be able to use named groups to capture from a path items that can be in any order.
For example, the path might be:
/root/item1/item2/item2/item3/item4
or it might be mixed up:
/root/item4/item3/item1/item2
and it is possible that certain items might not even be present:
/root/item3/item1
/root will always be present, though its name will vary depending on which type of path I am trying to match--so I'm mainly concerned with matching named groups <Item1> through <Item4> when they can appear in any order.
I'd prever to be able to do this WITHOUT needing to write an expression for each combination, as there could be upwards of 10 items I want to match (too many combinations!!)
Thanks ahead of time for your help!