Hello,
I would like to split a string using a regular expression.
the part i want to split is always 1 or more numbers followed by either an optional letter or a “-” (minus) followed by 1 or more numbers.
can anyone help me fix this?
examples:
test 123
test 1a
test 1
test 12-34
part 1 is always "test " and splitting on the space isnt an option because "test " is usually much longer with optional spaces and other characters in it.
part 2 in this example is always the part after "test "
thanks in advance