I have the following string and I would like to capture only the part of it.
The original string is
-f K:\something1\EXCHANGE\something2 \something3\something4\something.c
What I would like to capture is:
The following regexp captures everything upto EXCHANGE. But I don't want to capture -f in the beginning. (-f can also be -d )
How can I write this regexp?