javascript - Catch first zero by regex -
i have string:
0012309test07
and want find first zeros , letters.
00 12309 test 07
sure found letters /[^\d]/
, here's sample.
but how catch first zeros ?
use regexp \b0+|[a-za-z]+
i have string:
0012309test07
and want find first zeros , letters.
00 12309 test 07
sure found letters /[^\d]/
, here's sample.
but how catch first zeros ?
use regexp \b0+|[a-za-z]+
Comments
Post a Comment