Given a line of string, I need a way to extract keywords.
A keyword is anything that starts with $ and ends when it is followed by non-alphanumeric character.
For instance, given the following strings
tempval = $SREAD(13,"B14.OATEMP");
$ORCONTROL("B14.OUTT)
$LOOP(0,"B14.HX.COM)
if ($START(24))
I need to retrieve $SREAD, $ORCONTROL, $LOOP, $START
What is the easiest way to do this?
Try this pattern, it might help you
Screenshot