|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I am havign a bit of trouble getting my brain to work guys. I KNOW this hould be easy...
I need to pattern match an md5 sum. To make sure it is 32 chars, contains only 0123456789abcdef as chars.... HELP! my brian is fryed. |
|
#2
|
||||
|
||||
|
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by SimonWaltr:
I need to pattern match an md5 sum. To make sure it is 32 chars, contains only 0123456789abcdef as chars....[/quote] How about this: if ($str =~ /^[a-zA-Z0-9]{32}$/) { # success... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > regex MD5 sum match |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|