https://xkcd.com/208/

http://gskinner.com/RegExr/

RegEx in Notepad++
also see –blog.creativeitp.com

Long string – space every two characters

Search:  (.)([0-9a-f])
Replace:   \1\2

*Note:  search brackets () are represented by Replace \#.

Remove lines NOT(^) beginning with number:

^[^\d].*
^[^0-9].+
Replace: (empty)

Only lines with single (multi-digit) number

^[\d]+$

Add leading 0 to string of 7bit binary

([01][01][01][01][01][01][01])

0\1

Find text reference in youtube transcripts

<text start=”[\d]{1,5}” dur=”[\d]{1,5}”>

Lines NOT Starting with “http
^[^”http].+
Starting with “http
^[“http].+
Starting with “, trim after first space
^([“][\S]+).*
\1

Unique Characters:

^(?:([A-Za-z])(?!.*\1))*$
Clean Lat,Long,Name
.+\[(-?\d{0,3}\.\d{4,6}),(-?\d{0,3}\.\d{4,6}).+title=”.+”>(.+)</a>.+
.+AP:.+\r\n
– .+\r\n

 

Non consecutive

(.)(?!\1)

*optionally

“select Mark All. This will place blue circles, like marbles, in the left gutter – these are line bookmarks. Then just select from main menu Search -> Bookmark -> Remove bookmarked lines.” -Peter Perháč

Advertisements