Matching a space in regex

If you’re looking for a space, that would be ” ” (one space). If you’re looking for one or more, it’s ” *” (that’s two spaces and an asterisk) or ” +” (one space and a plus). If you’re looking for common spacing, use “[ X]” or “[ X][ X]*” or “[ X]+” where X … Read more

How to avoid Request Entity Too Large 413 error

How to fix it in NGINX? client_max_body_size To fix this, you need to increase the value of the client_max_body_size directive. This directive defines the maximum amount of data Nginx will accept in an HTTP request. By default this value is set to 1 megabyte, meaning if you attempt to upload a file larger than 1 … Read more

What do ++ and *+ mean?

++ From What is double plus in regular expressions? That’s a Possessive Quantifier. It basically means that if the regex engine fails matching later, it will not go back and try to undo the matches it made here. In most cases, it allows the engine to fail much faster, and can give you some control … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)