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
  • 596,455
  • 48
  • 393
  • 495
Careless
  • 45
  • 1
  • 7

0 Answers0