I recently came across a great SO thread that uses Google App Scripts to save multipart uploads from a form to a Google Drive. One line in that answer calls:
.replace(/^.*,/, '')
on a base64 encoded representation of a file upload. My question is: what does this regular expression do?
Using a regex parser, it seems that this should start at the beginning of a string, match any character any number of times, but that would replace the entire string with '', so I'm clearly not grokking this simple operation. If others have any insights on this question, I'd be grateful for their input.