I do not understand why he does not want to save the result in the group?
Here is the regular expression
(?:(\d+)-?)+ /// То есть он ловит примерное следущее 53453-3234-324234-24324-5234 I need the result to be saved in groups:
1. 53453 2. 3234 3. 324234 4. 24324 5. 5234 But for some reason, now he is not saving in groups as it should, at the moment he is saving only one group and this is the last one, that is 5234 . I would also like not to save the dash to the groups that I actually showed above.