Accessibility Specialist. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
regex101.com <- that is without doubt one of, if not the best ways to learn Regular Expressions.
I think the issue is that they look complicated and it is really easy to make a mistake, a tool like the above breaks down the steps you have written, explains them and lets you test against some text so you can check it matches.
Also a lot of people get confused because they try and use regular expressions to parse HTML....your will always end up in a mess with that! (if you have never seen the famous StackOverflow post on using a RegEx to parse HTML then follow that link!)
I mean, they also look horrible sometimes and I think that makes people think they use some kind of voodoo to work....
That right there is a regular expression to parse Markdown as part of a library called snarkdown, and it kind of works! (it might not display well on dev.to comments due to the fact it contains a load of markdown but you get the idea!)
But trying to get your head around it requires breaking it down into tiny sections, in which case it isn't so scary (but still difficult!)
Above all - get into developer mode when writing a RegEx - break the problem down into tiny steps and tackle each one at once.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
regex101.com <- that is without doubt one of, if not the best ways to learn Regular Expressions.
I think the issue is that they look complicated and it is really easy to make a mistake, a tool like the above breaks down the steps you have written, explains them and lets you test against some text so you can check it matches.
Also a lot of people get confused because they try and use regular expressions to parse HTML....your will always end up in a mess with that! (if you have never seen the famous StackOverflow post on using a RegEx to parse HTML then follow that link!)
I mean, they also look horrible sometimes and I think that makes people think they use some kind of voodoo to work....
That right there is a regular expression to parse Markdown as part of a library called snarkdown, and it kind of works! (it might not display well on dev.to comments due to the fact it contains a load of markdown but you get the idea!)
But trying to get your head around it requires breaking it down into tiny sections, in which case it isn't so scary (but still difficult!)
Above all - get into developer mode when writing a RegEx - break the problem down into tiny steps and tackle each one at once.