Nmap Development mailing list archives
Re: Detecting/parsing a hex string
From: Brandon Enright <bmenrigh () ucsd edu>
Date: Wed, 8 Oct 2008 16:24:22 +0000
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 8 Oct 2008 16:20:04 +0000 or thereabouts Brandon Enright <bmenrigh () ucsd edu> wrote:
$hex_string =~ /(?:[0-9A-Fa-f]{2})+/
Of course, I failed to provide anchors here so this isn't foolproof. Here we go: $hex_string =~ /^(?:[0-9A-Fa-f]{2})+$/ Sorry 'bout that. Brandon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkjs3rYACgkQqaGPzAsl94KLgQCgpyj5bgtEhTWulNgp6pFDa4VO Z84An2YKPxDnODSTldKalC7J27CmHZh7 =ue4S -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Detecting/parsing a hex string Ron (Oct 08)
- Re: Detecting/parsing a hex string Brandon Enright (Oct 08)
- Re: Detecting/parsing a hex string Brandon Enright (Oct 08)
- Re: Detecting/parsing a hex string Patrick Donnelly (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)
- Re: Detecting/parsing a hex string Patrick Donnelly (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)
- Re: Detecting/parsing a hex string Brandon Enright (Oct 08)
- Re: Detecting/parsing a hex string Ron (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)
- Re: Detecting/parsing a hex string Ron (Oct 08)
- Re: Detecting/parsing a hex string Brandon Enright (Oct 08)
- Re: Detecting/parsing a hex string Ron (Oct 08)
- Re: Detecting/parsing a hex string David Fifield (Oct 08)