Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一行字符串,我需要一种提取关键字的方法。
Akeyword是以$开头并在其后跟非字母数字字符时结束的任何内容。
keyword
例如,给定以下字符串
tempval = $SREAD(13,"B14.OATEMP"); $ORCONTROL("B14.OUTT) $LOOP(0,"B14.HX.COM) if ($START(24))
我需要检索 $SREAD、$ORCONTROL、$LOOP、$START
最简单的方法是什么?
试试这个模式,它可能对你有帮助
\$[A-Za-z0-9]+
截屏