|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Matching long hex a stringsby gman (Friar) |
| on Feb 02, 2004 at 11:50 UTC ( [id://325906]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.gman has asked for the wisdom of the Perl Monks concerning the following question: Hello, As my regex skills are greatly lacking and I could not find a suitable solution that got my brain to jump start on it own, I'm having trouble matching a hex number like 01940110d840fc48. It could be contained in strings like the following examples.
What I have tried so far matches on all or nothing. Edited, 2 Feb 2004, by footpad: Added <code> tags around sample data and XML-ified the HTML formatting. Also, corrected minor typos. Many thanks to borisz and Abigail for the quick response and solutions. Thanks!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||