Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *********************************
- Find and Replace duplicate
- Find: ^(.*?)$\s+?^(?=.*^\1$)
- Replace:
- *********************************
- String:"CITIES: SKYLINES - CONTENT CREATOR PACK: BRIDGES & PIERS 21 May, 2021
- This set of 22 unique assets from community creator Andrés “Armesto” Cortiña ranges from simple to ornate, with industrial and classical styles found around the world."
- Pattern:(\d{4})\v{1,2}\V{1,}\v{1,2}\v{1,2}
- Replace:
- Explain:
- \v => \r\n
- \V => not \r\n
- *********************************
- n regex, the ! does not mean negation; instead, you want to negate a character set with [^"]. The brackets, [], denote a character set and if it starts with a ^ that means "not this character set".
- So, if you wanted to match things that are not double-quotes, you would use [^"]; if you don't want to match any quotes, you could use [^"'], etc.
- With Notepad++, you should be able to search with the following to find lines that don't start with the " character:
- ^[^"]
- If you want to highlight the full line, use:
- ^[^"].*
- ****************************************
- TEXT: < / L A _ U R L > < / D A T A > < / W R M H E A D E R >
- FIND: ([^ ]) ([^ ])
- REPLACE: \1\2
- OUTPUT: </LA_URL></DATA></WRMHEADER>
- EXPLAIN: [^ ] => select non space characters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement