Skip to content

Instantly share code, notes, and snippets.

@m4r71n
Created January 29, 2014 21:05
Show Gist options
  • Save m4r71n/6fd7452cba0151436639 to your computer and use it in GitHub Desktop.
Save m4r71n/6fd7452cba0151436639 to your computer and use it in GitHub Desktop.
transforms german date format to english date format and adds as entry
[Commands]
1\Name=Date german -> english
1\Match=[0-9]{2}.[0-9]{2}.[0-9]{4}
1\Command="copyq eval \"add( str(input()).trim().replace(/([0-9]{2}).([0-9]{2}).([0-9]{4})/, '$3-$2-$1') )\""
1\Separator=\\n
1\Input=text/plain
1\Automatic=true
1\InMenu=true
size=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment