Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am running this regex: ^https?:\/\/www\.chkhikvadze\.com\/[a-z0-9-/]+-[0-9]\.[0-9]{7}$ and getting this error: My sql error 1139 invalid character name.
^https?:\/\/www\.chkhikvadze\.com\/[a-z0-9-/]+-[0-9]\.[0-9]{7}$
My sql error 1139 invalid character name
when i remove this fragment [a-z0-9-/] or only -/ it works. how can i fix it?
[a-z0-9-/]
-/
^https?://www[.]chkhikvadze[.]com/[a-z0-9/-]+-[0-9][.][0-9]{7}$
Just put the dash in front:
^https?:\/\/www\.chkhikvadze\.com\/[-a-z0-9/]+-[0-9]\.[0-9]{7}$
The parser thinks that 9-/ is supposed to be a range like a-z, but complains that it's not valid.
9-/
a-z
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
^https?://www[.]chkhikvadze[.]com/[a-z0-9/-]+-[0-9][.][0-9]{7}$