regex - Regular expression find matched between a string and a space -
i need find out words in sentence between $ , space $abc $cde $ety.
the result should abc, cde , ety.
i tried
'(?<=$$)(.*)(?=)' but shows error. wrong in or new suggestions?
you can try this:
\$(\w+) as capturing groups, you'll each of words.
\w match a-z, 0-9 , _, if want match letters, instance, can change to: \$([a-za-z]+)
Comments
Post a Comment