RegExp: Remove unwanted dash from specific line

How to remove dashes only from the line:
HKCU\Profiles\0\lines to modify " -a -b -c"

HKCU\Profiles\0\lines to modify " -a -b -c"
HKCU\Profiles\0\line line unchanged " -a -b -c"

This site can be really useful for regex: https://regex101.com/

Explore the Common Tokens in the Quick Reference in the lower right

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.