Alles na de laatste slash (filename)


Alles voor de laatste slash (pad)


zoek alle GUID's in een tekst


good introduction

find date(s) in a string

//finds one or more instances of dates in this format: 03-04-2018 

add brackets around auto links in md files in SublimeText

Find: http://.*
Replace: <$0>

javascript math id= parameter in querystring

var link = "";
var matches = link.match(/&id=([^&]*)/);
var id = matches ? matches[1] : null;
//result: 138622

regexp pal

javascript parse whitespace

let wc = "        7      1312";

Shiffman about regex

Find all URLs starting with http and ending with .html

this works in the SublimeText search function:


Online tools


expr "ok T:83.4 /0.0 B:0.0 /0.0 @:0" : 'ok T:\([0-9]*\.[0-9]*\)'

sed & cut

grep -o '\(T:\)\([0-9]*\.[0-9]*\)' /tmp/UltiFi/ttyACM0/ temp.out | cut -c 3-
grep "spotify:track:" spotify.json | cut -c 16-51
grep "spotify:track:" spotify.json | head -n 1 | cut -c 16-51    # only first result


see [[awk]]

turing machine with SED