RE: Regex 101 Exercise S2 – Verify a string is a hex number

<p>It turns out I made a little mistake. The regex should be more like ^[A-Fa-f0-9]+$. The "0" problem might be sorted like this ^[A-Fa-f1-9][A-Fa-f0-9]*$.<p /></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan

<p>It turns out I made a little mistake. The regex should be more like ^[A-Fa-f0-9]+$. The "0" problem might be sorted like this ^[A-Fa-f1-9][A-Fa-f0-9]*$.<p /></p>


This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan


Print Share Comment Cite Upload Translate Updates
APA

Paul Kinlan | Sciencx (2005-11-01T00:00:00+00:00) RE: Regex 101 Exercise S2 – Verify a string is a hex number. Retrieved from https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/

MLA
" » RE: Regex 101 Exercise S2 – Verify a string is a hex number." Paul Kinlan | Sciencx - Tuesday November 1, 2005, https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/
HARVARD
Paul Kinlan | Sciencx Tuesday November 1, 2005 » RE: Regex 101 Exercise S2 – Verify a string is a hex number., viewed ,<https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/>
VANCOUVER
Paul Kinlan | Sciencx - » RE: Regex 101 Exercise S2 – Verify a string is a hex number. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/
CHICAGO
" » RE: Regex 101 Exercise S2 – Verify a string is a hex number." Paul Kinlan | Sciencx - Accessed . https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/
IEEE
" » RE: Regex 101 Exercise S2 – Verify a string is a hex number." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/. [Accessed: ]
rf:citation
» RE: Regex 101 Exercise S2 – Verify a string is a hex number | Paul Kinlan | Sciencx | https://www.scien.cx/2005/11/01/re-regex-101-exercise-s2-verify-a-string-is-a-hex-number/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.