mmmm0303 2022-09-07 10:08 采纳率: 64.7%
浏览 23
已结题

写出一个正则表达式满足式子的要求

Currency, in dollars, represented as a positive decimal number rounded to the nearest one-hundredth. Such numbers begin with the character $, have commas separating each group of three digits to the left of the dccimal point, and end with two digits to the right of the dccimal point, for example, $8,937.43 and $7,777,777.77.

  • 写回答

3条回答 默认 最新

  • weixin_48484941 2022-09-07 10:41
    关注

    ^$\d{1,3}(,\d{3})*.\d{2}

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 9月18日
  • 已采纳回答 9月10日
  • 创建了问题 9月7日