I need a regex to match whole words that begin with $. What is the expression, and how can it be tested?
Example:
This $word and $this should
This should be self-explanatory:
\$\p{Alphabetic}[\p{Alphabetic}\p{Dash}\p{Quotation_Mark}]*(?
Notice it doesn’t try to match digits or underscores are other silly things that words don’t have in them.