I need to detect strings with the form @base64 (e.g. @VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==) in my application.
@VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==
The @ has to be at the begin
try with:
^@(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
=> RegEx to parse or validate Base64 data