我有一个txt文件。在那个文件中,我想过滤一个特定的词。
例子:
$PILOT_FIRSTNAME $PILOT_LASTNAME. This is the final confirmation for this flight.
Run Code Online (Sandbox Code Playgroud)
我想要这样的输出:
PILOT_FIRSTNAME
PILOT_LASTNAME
Run Code Online (Sandbox Code Playgroud)
带 的所有单词是什么$,那个单词只取?