in reply to Re^2: Extract middle string from a path using RegExp
in thread Extract middle string from a path using RegExp

toolic's point is that it's impossible unless you tell us what special about the indicated points
| | | | v v C:\fldr1\fld2\fldr3\fldr4\fldr5\test.txt@@\main\Msometest\test12.1x\1

For instance, how do you know it's not

| | | | v v C:\fldr1\fld2\fldr3\fldr4\fldr5\test.txt@@\main\Msometest\test12.1x\1

or

| | | | v v C:\fldr1\fld2\fldr3\fldr4\fldr5\test.txt@@\main\Msometest\test12.1x\1