1

I need some help with javascript

I need to search (p|t|k) and (b|d|g) in a text paragraph taken from a textarea then mark with <b>(b|d|g)</b> only if they are preceded or followed by one of the letters (p|t|k)

examples:

bp b

tb

bp

fb

The only thing I was able to do is mark both and search it by myself but if someone could help me with this would be great

Alan
  • 11
  • 2

0 Answers0