I need the (javascript) regex needed to validate a Cloudinary Public ID. The rules are:
The Public ID format supports all printable characters except for the following reserved characters: ? & # \ % < >. In addition, spaces and forward slashes (/) cannot be used as the first or last character of the Public ID.
Tried this but it's not working: ^[^\s\\]+[^?&#\%<>]+$
I was referencing these SO questions: Javascript regex - no white space at beginning + allow space in the middle and Regex - Does not contain certain Characters