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 ....
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 ....