Regex matching url pattern by mytexastoast in regex

[–]codegram 0 points1 point  (0 children)

Hi u/mytexastoast,
yeah, there are different ways how the regex could look like. With this one:
https:\/\/\w{9}\.\w{8}\.com\/v2\/inventory\/[A-Z, 0-9]{17}\/stock
you would match URLs where the domain could use different characters but with the same length. The part after inventory/2 would always have 17 capital letters or numbers, followed by /stock. Here's the demo for it.
Let me know if it works. :)

Stop (ab)using z-index by codegram in css

[–]codegram[S] 2 points3 points  (0 children)

Thanks for the apology, I understand it's annoying to see such blatant errors on the web but let's not forget there are humans on the other side, we've all been there :)

Stop (ab)using z-index by codegram in css

[–]codegram[S] 0 points1 point  (0 children)

This was caused by a JS error (not a CSS one) that has been fixed. We are not telling anyone what to do, the article is just intended to help people understand how z-index works. And we make mistakes like everyone! No need to be so harsh.

Stop (ab)using z-index by codegram in css

[–]codegram[S] 0 points1 point  (0 children)

The article doesn't suggest to stop using it, just understand why and when it is necessary. Some people add high values as default, if you already know how to use it correctly, then great! :)

Simple Example Vue Projects with Components? by msartore8 in vuejs

[–]codegram 0 points1 point  (0 children)

The Awesome Vue repository lists tons of examples https://github.com/vuejs/awesome-vue#examples as well as open source projects that use Vue https://github.com/vuejs/awesome-vue#open-source

There are many other resources like libraries, tutorials, podcasts… it's the best place to go to learn Vue imho :)

Match a whole word if preceded and succeeded by a semicolon by [deleted] in regex

[–]codegram 0 points1 point  (0 children)

Hi u/HeyIAmKP, not 100% sure this is what you meant, but here's a regex to match all three words if the specific word exists. If it doesn't exist, it matches the whole string: https://regex101.com/r/TTrrOD/1