I posted this Validate number with Decimal Separator and optional Thousands separator with regex question yesterday. Before posting it I tried a bunch of different combinations, and read many posts.
I am not happy to admit, I am not that great with regex, and I don't know anyone that is better than me (I mean in real life). So in the end I posted the question.
Yet I got several downvotes and mark it as duplicate of several questions, none of which have the expression I need and a comment that says:
Ok so in theory if I keep at it, eventually, I should be able to come with a expression that works (I hope I should at least), and the comment from the closing person basically says I should. I updated my question referencing every question linked as duplicate for mine and gave examples for which the different expressions didn't work.
The closer seems to suggest I should combine them all and make it work. Which btw Is what I was trying to do before posting my question.
So it is wrong from me to ask in this site this kind of question? I thought I covered everything, I stated my issue correctly, I demonstrated I did research, I know that eventually, giving an endless period of time, I should be able to solve it by myself, but I have no way of knowing how long will it take me. But from the comment it seems, if I am theoretically capable of solving the issue, I shouldn't post here.
I know regex is a special case, there are so many, and so many people has posted questions about them. But I went through many, many of those posts, and couldn't find a expression that works correctly for what I feel is a rather extremely common problem, that is why I posted my question.
I would really appreciate your guidance on this. So far I updated my question with comments about the duplicates, and voted to reopen, but I don't know if I should have and if it will actually get reopen.
Update
Also, this may seem like a poor excuse, but in general I have great difficulty reading regex because a problem I have with my eyes. So making and spotting small changes on them is hard for me. So I am sorry if the regex I requested is really simple. Maybe someone can suggest me better tools to work with them? For example adding colors actually doesn't help, it makes them harder to read.
I think downvoting because you think I shouldn't use regex, when you can't posibly know everything that there is to my situation is slightly biased
- This is literally why the downvote button exists. Regex is likely the wrong solution to this problem, so, yes, people should downvote if they believe the question is not useful. It's more an overcomplication of the problem space. Subscribe to the KISS principle.X/Y Problem
as you have been told over and over as well. You are asking a question about a solution (which is not the solution), instead of the problem.