md5-regex
Regular expression for matching MD5 hashes in strings.
Install
~ ❯❯❯ npm install md5-regex
Usage
const md5Regex = ; ;//=> true ;//=> false ;//=> true 'nodejsrocks 1abcb33beeb811dca15f0ac3e47b88d9 rainbow 897b47d80a717715378832539b4c1340';//=> ['1abcb33beeb811dca15f0ac3e47b88d9', '897b47d80a717715378832539b4c1340']
API
md5Regex([options])
Returns a regex for matching MD5 hashes.
options.exact
Type: boolean
Default: false
(Matches any MD5 hash in a string)
Only match an exact string. Useful with RegExp#test()
to check if a string is an MD5 hash.
License
MIT © Nikolaos Kamarinakis