Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 11 of 11
Search took 0.00 seconds.
Search: Posts Made By: T1MOXA
Forum: Scripting 09-16-2018, 20:07
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

I have 2 problems at the moment.
1. Regex expresion to remove emoji not working
2. utf8mb4_general_ci encoding didn't help


database charset - utf8mb4
database collation - utf8mb4_general_ci...
Forum: Scripting 09-16-2018, 20:05
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Thank you, not knew about this rule.
Okay, how do I solve my problem ?
@asherkin not responding.
Forum: Scripting 08-29-2018, 15:56
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Yes, this probably would solve the problem, but this option is not suitable because too many plugins use the database, and will have to rewrite everything.
It is easier to remove the symbol with a...
Forum: Scripting 08-23-2018, 05:06
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

I did just that.
Just changed the encoding in the database.
Forum: Scripting 08-22-2018, 18:23
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Today I encountered an error "Incorrect string value: '\xF0\x9F\x92\x8B\xF0\x9F...' for column 'name' at row 1".
The database is encoded utf8mb4_general_ci.
The column too.
What else could be the...
Forum: Scripting 07-23-2018, 06:31
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Then I get errors like this:
Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='

...


Although it seems that this problem is due to...
Forum: Scripting 07-20-2018, 22:11
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Then I'll have to rewrite all plugins and web interfaces to a different encoding...
And in general it is interesting why this rule does not work in sourcemod but it works on the regex101.
Forum: Scripting 07-20-2018, 20:36
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Unfortunately, this rule removes too many characters.
I am writing this regular expression to remove those characters from nicknames which do not properly send to the MySQL server.

To avoid such...
Forum: Scripting 07-18-2018, 20:44
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Thanks, but I'm not sure what it gives me...
By the way, here (https://regex101.com/r/nRszGj/1/) this expression works as it should.
From your answer I understood that most likely to do what I want...
Forum: Scripting 07-18-2018, 16:47
Replies: 17
Views: 3,151
Posted By T1MOXA
Re: Can't compile regex expression.

Thanks...

#include <regex>

public void OnPluginStart() {
char sError[128];
RegexError rError;
Handle hExpression = CompileRegex("[\\x{D800}-\\x{DBFF}]", PCRE_UCP, sError, sizeof(sError),...
Forum: Scripting 07-18-2018, 15:34
Replies: 17
Views: 3,151
Posted By T1MOXA
Can't compile regex expression.

#include <regex>
public void OnPluginStart() {
PrintToServer("%i", CompileRegex("[\x{D800}-\x{DBFF}]", PCRE_CASELESS));
}
Return: 0

What am I doing wrong ?

UPD.
the same proplem with...
Showing results 1 to 11 of 11

 
Forum Jump

All times are GMT -4. The time now is 17:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode