base64-regex icon indicating copy to clipboard operation
base64-regex copied to clipboard

The regex can't match some base64 string

Open minwe opened this issue 8 years ago • 4 comments

438026444 convert to base64 string is NDM4MDI2NDQ0, the regex can't match this.

This function works well.

minwe avatar Aug 11 '17 05:08 minwe

Me also facing some issue testing some base64 strings such as "NTkxNjVSRUZVSV9JU19QaGFybWFjeV9TdGFmZixBc3Npc3RhbnRNYW5hZ2Vy"

orocsy avatar Oct 23 '17 16:10 orocsy

When I validate those base64-strings it validates them as correct.

Uzlopak avatar Oct 26 '17 14:10 Uzlopak

This regex seems working well: (?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})

def00111 avatar Nov 15 '17 13:11 def00111

Wow... after three years I am checking this issue again... and still the catastrophic backtracking version is not updated.

Uzlopak avatar Nov 15 '21 21:11 Uzlopak