How to remove dollar format with regex

前端 未结 8 1941
北荒
北荒 2021-01-21 02:42

I am trying to remove the dollar format from the string \'$1,109,889.23\'. I tried using a regular expression with:

\"[^\\\\d]\" 

but then I ge

8条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-21 03:04

    [\d,.]+ would give you the number part. Here is your example on Rubular.

提交回复
热议问题