in reply to Re^3: Reliable way to detect base64 encoded strings
in thread Reliable way to detect base64 encoded strings
Regex are not my favorite part of Perl....even if they are powerful. I'm trying to use your way to detect if a string is base64...so I was taking what you had and putting an if around it. I'm sure I'm just not getting it....could you give me some pointers?
Thanks in advance for your expertise.if($string_whole =~ m / ^ (?: [A-Za-z0-9+/]{4} )* (?: [A-Za-z0-9+/]{2} [AEIMQUYcgkosw048] = | [A-Za-z0-9+/] [AQgw] == )? \z /x ) $&Log ("it found base64-$i");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Reliable way to detect base64 encoded strings
by ikegami (Patriarch) on Apr 16, 2010 at 05:05 UTC | |
by hahngoldn (Initiate) on Apr 16, 2010 at 22:49 UTC | |
by ikegami (Patriarch) on Apr 17, 2010 at 04:23 UTC | |
by Anonymous Monk on Apr 30, 2010 at 19:10 UTC | |
by ikegami (Patriarch) on Apr 30, 2010 at 21:03 UTC |