howmuch515

regex.js

Jul 18th, 2019
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // mac address
  2. /([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}/
  3.  
  4. // ipv4 address
  5. /((2[0-4][0-9]|25[0-5]|1[0-9]{2}|[0-9]?[0-9])\.){3}(2[0-4][0-9]|25[0-5]|1[0-9]{2}|[0-9]?[0-9])/
  6.  
  7. // hex ptr
  8. /0x[0-9a-fA-F]{1,16}/
Advertisement
Add Comment
Please, Sign In to add comment