How to match multiple occurrences of a substring

后端 未结 3 758
逝去的感伤
逝去的感伤 2020-11-22 17:00

If I have an HTML string such as:

£2056

<
3条回答
  •  有刺的猬
    2020-11-22 17:26

    To match multiple times use to need use the global option

    str.match(/your_expression_here/g)
                                    ^
    

提交回复
热议问题