[Solved] Regex remove before colon notepad++ [closed]


Instead of ^[^:]*:, use ^.+: because [^:] matches also newline.

Find what: ^.+:
Replace with: NOTHING

Don’t check dot matches newline

Edit according to comment:

This will match the last occurrence of : within each line.

If you want to match the first occurrence of : use ^.+?:

2

solved Regex remove before colon notepad++ [closed]