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,743
  • 1
  • 14
  • 28
Saeed Heidarizarei
  • 8,406
  • 21
  • 60
  • 103

1 Answers1

1

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

/ghgdfgfd\(bbb\)/
Robby Cornelissen
  • 91,784
  • 22
  • 134
  • 156