How do I remove portion of each line from "@" to "|" in notepad++
[email protected]|cake to apple|cake
How do I remove portion of each line from "@" to "|" in notepad++
[email protected]|cake to apple|cake
Like heavyd suggested, it depends which |
you want to match.
DBZ_A's solution will give you the greedy (as long as possible) match.
This will give you the lazy (shorter) match, which I suspect you want
Find what: @[^\|]*\|
(This should match an @
, followed by any number of characters that are not |
, followed by |
)
Replace with: @|
Use 'Regular expression' option in find and replace dialogue
search for :
@(.*)\|
replace with:
@|
Note that the | character needs to be escaped as \| in the search string
|
character do you want to match?