Suppose I have this text :
qsdfq fmld - 123 -mqlskdj -6464 - qlsdkjflj - 54654 -qsdfqsdf -2542
And I want to capture all numbers. A solution could be :
\D*(\d*)\D*(\d*)\D*(\d*)\D*(\d*)
But I don't know how many numbers I have. So I want to use the + sign. I tried the following but it does not work :
[\D*(\d*)]+