I need to regex every match of a string (including empty string!) separated by slash but the regex returns also empty string after each occurrence.
Examples (always 4 matches):
root/level1/level2/level3
/level1//level3
root/level1/level2/
Pattern:
[^\/]*
- return 8 matches (empty string after and before ) instead of 4
I also tried to use IF-THEN-ELSE clause but it did not help :-(
I've searched dozens of articles but did not find any solution.