I want to find words starting with stop.
and extract the string that follows the word. Each string should be in a new line.
Also the results file should not have any duplicates.
Example file:
example regex stop.variant1
stop stop.variant_2 examplestop
stopstopvariant
stop.variant_@_3
Result:
variant1
variant_2
variant_@_3
.*?(\bstop\.variant\S*)
$1\n
. matches newline
*Explanation:
.*? # 0 or more any character
( # group 1
\b # word boundary
stop\.variant # literally
\S* # 0 or more non spaces
) # end group
Screen capture:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments