I did try to post an answer many times, but the preview kept making me think the posted text was being modified??
So then I just deleted them to try again, but then getting blocked, so this almost what I'm was trying to post...
^((https?:\/\/)?([a-z0-9]+\.?)*[a-z0-9]+\.(com|php)(\/([a-z0-9]+\/)+)?|(\.\/)?([a-z0-9]+\/)+[a-z0-9]*$|(\.\/)?([a-z0-9]+\/)+)([a-z0-9]+\.(html?|php|png|jpg|gif))?$
If its not displaying/working properly, then instead just go to... https://regex101.com/r/jOvcz0/1
So it can show the unedited expression, also with having notes at the bottom for me guessing what not to match.
If anybody does have advice for the best pre tags to use with regex, its to be
very much appreciated.
Im not know much about .html or 'query strings', but if posting samples I'm certain the experts can help modify.
Its very unfortunate that getting a truthful preview was like 1000x harder than trying to answer some questions.
Now Im finally learned to not look at that last preview, after clicking the "Submit your solution".