Suppose the file path is "a/b/c/d/e", how can I get a array of 'a', 'b', 'c', 'd', 'e'?
I have consider with this:
(?:(.+)/)*?(.+)
but it get empty string,it is really unexpected.
Asked
Active
Viewed 45 times
0
LoranceChen
- 2,271
- 2
- 17
- 40
-
You can use `[^/]+` – Wiktor Stribiżew Sep 28 '16 at 16:11
1 Answers
0
Mustofa Rizwan
- 10,009
- 2
- 25
- 42
-
-
-
-
-
I'm not use `/g` in c#, I add it with `Matches` method( before is `Match` method), it works now! thanks – LoranceChen Sep 28 '16 at 16:46
-