1

How Can I Match This Regular expression?

ghgdfgfd(bbb)

I used This:

bot.onText(/\ghgdfgfd(bbb)/

But this does not work for me.

Gaurav joshi
  • 1,683
  • 14
  • 27
Saeed Heidarizarei
  • 7,566
  • 18
  • 56
  • 99

1 Answers1

1

You have to escape the parentheses, otherwise they're interpreted as grouping operators:

/ghgdfgfd\(bbb\)/
Robby Cornelissen
  • 81,630
  • 19
  • 117
  • 142