Please read the thread before you judge me I'm The Noob Guy who making suck plugins and judge the whole community. The truth is, if you are asking for the help at Plugin/Development section, and no one wants to solve your problem, your thread will be moved to the Facepalm section. But that's fine, it's description-ed. But that is not what I am concerned with. I have 2 threads that at the Facepalm section now, one of those are not solved for 1 week. Now one more, but i promise to lose my head if those threads will be solved the next 3 weeks. Just understood the things below.
The two \\ besides each other have a purpose. The first \ is escaping the second \ so the second \ just stays there. It actually ends in the same thing.
Because you have two \ there. Try thinking of it like this. If you have that regex inside two "s, php will escape the second \ and remove the first one. So you actually end up with one of these \ and not two. Example: PHP: $text = "Hello\\";echo $text; Output: Hello\ The issue now on your picture is, that the regex website you use doesn't do that.
Var dumped it in a if because you asked me to. PHP: $string = "^[\t ]*\\* @priority[\t ]{1,}([a-zA-Z]{1,})";if(var_dump($string)){} Output: string(40) "^[ ]*\* @priority[ ]{1,}([a-zA-Z]{1,})" Notice that one \ is gone? Dktapps had a reason to write just one \ there.
That brings me to my fool at the beginning: The single-line PHPDoc doesn't work. Okay so one guy told me to make a PR to make it works but screw it, no. How about changing codestyle. One of my thread still have no reply since then. Tried to bump and still no. I can spot some of other threads too. They don't looks "stupid" and the topic owner doesn't think it is stupid either. No reply then.
Please read https://forums.pmmp.io/threads/lack-of-help-in-simple-requests.2604/ before you start yelling at people for not helping you.
You are just like everyone else who deserves to be moved to facepalm! You didn't even research your issue before posting! regex isn't even a PMMP API problem! It's a generic coding issue which, again, you did not research before posting issues on. As to your second issue, you didn't research that either! https://forums.pmmp.io/threads/lack-of-help-in-simple-requests.2604/ Be smart so you don't lower everyone else's IQ. Do some research.