Regular Expression to get a string between parentheses in Javascript

后端 未结 9 811
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 09:45

I am trying to write a regular expression which returns a string which is between parentheses. For example: I want to get the string which resides between the strings \"(\"

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 10:22

    For just digits after a currency sign : \(.+\s*\d+\s*\) should work

    Or \(.+\) for anything inside brackets

提交回复
热议问题