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,685
  • 11
  • 26
Saeed Heidarizarei
  • 6,314
  • 15
  • 47
  • 88

1 Answers1

1

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

/ghgdfgfd\(bbb\)/
Robby Cornelissen
  • 72,308
  • 17
  • 104
  • 121