" -x a -x bc -x d -x efg -x h -x i -x jklm"
The following is an example of obtaining the first 4 sets of substrings. Can it be simplified?
Code: Select all
str := " -x a -x bc -x d -x efg -x h -x i -x jklm"
RegExMatch(str, " -[^-]+-[^-]+-[^-]+-[^-]+", r)
r := RTrim(r)
Msgbox % r