in reply to Re^4: Reliable way to detect base64 encoded strings
in thread Reliable way to detect base64 encoded strings
You have the right idea, but
is not valid Perl. You wantif (...) $&Log ("it found base64-$i");
if($string_whole =~ m/ ^ (?: [A-Za-z0-9+/]{4} )* (?: [A-Za-z0-9+/]{2} [AEIMQUYcgkosw048] = | [A-Za-z0-9+/] [AQgw] == )? \z /x) { Log("$string_whole is valid base64"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Reliable way to detect base64 encoded strings
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 |