We'd have a better idea if you tried to explain what you hope to achieve from the regex pattern and an example of text help in the $tDescrip variable. For example does the var contain multilines (i.e \n)?
diafol
Keep Smiling
10,665 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57
The s modifier may be overkill, but this seems to work for me:
$txt = "#me #prob #see #lemon
#hello #free";
preg_match_all('/(#\w+\b)/s',$txt,$k);
print_r($k);
diafol
Keep Smiling
10,665 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57
diafol
Keep Smiling
10,665 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57
Question Answered as of 7 Months Ago by
diafol