0

Can someone give me some explanation for this code:

.match(/(^|\s)(#[a-z\d-]+)/ig)[0];

I know it is for finding word next to # but I want to search for first word typed so I want to know how to change it ....

Barmar
  • 741,623
  • 53
  • 500
  • 612
Careless
  • 45
  • 1
  • 7

0 Answers0