alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
494 stars 197 forks source link

Missing Regex function #640

Open regener opened 5 years ago

regener commented 5 years ago

So I was browsing the functions on the API site when I faced this, regex_match claims this: If you intend on using the same regular expression pattern multiple times, consider using regex_compile and regex_match_ex instead of making this function reparse the expression each time.

There comes the "but" part, when I realized that regex_match_ex does not exist, not even in the module.cpp.

It is also mentioned at the description of regex_match_all.

Futhermore take a look at this: regex_split

Arkshine commented 5 years ago

Looks like doc needs to be updated. This function has been removed at some point because being redundant: https://github.com/alliedmodders/amxmodx/pull/69/commits/287f471ac497d8aac3acbc07ed377f5aa9fce558.