Skip to content

Instantly share code, notes, and snippets.

@sandnuggah
sandnuggah / swedish_mobile_phone_regex.rb
Created October 6, 2013 21:42
Regular Expression for validating swedish mobile phone numbers.
/A\+?(?:0{0,2}[46]*){1}7{1}[0-9]{8}/z
# name: clearance-mod
# ---------------
# Based on idan. Display the following bits on the left:
# - Virtualenv name (if applicable, see https://github.com/adambrenecki/virtualfish)
# - Current directory name
# - Git branch and dirty state (if inside a git repo)
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end

Keybase proof

I hereby claim:

  • I am sandnuggah on github.
  • I am bakunin (https://keybase.io/bakunin) on keybase.
  • I have a public key whose fingerprint is A09E 082E B4DE 9904 0F6E B838 06A0 5CE5 B05E BA91

To claim this, I am signing this object: