Regular Expression for matching parentheses

前端 未结 5 1317

What is the regular expression for matching \'(\' in a string?

Following is the scenario :

I have a string

str = \"abc(efg)\";
5条回答
  •  时光说笑
    2020-12-14 00:32

    For any special characters you should use '\'. So, for matching parentheses - /\(/

提交回复
热议问题