[Plugin] .NET Plugin - Write PLUGINS in C#
#2

Added class for working with regular expressions

regex.IsMatch - Indicates whether the regular expression specified in the Regex constructor finds a match in the specified input string, beginning at the specified starting position in the string.
regex.Match - Searches the specified input string for the first occurrence of the specified regular expression.
regex.Replace -

In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string.

The names of the functions are taken from here ( https://sampforum.blast.hk/showthread.php?tid=247893 )

macro:
PHP Code:
#define regex_match(%0,%1) callDotnetMethod("regex.Match", "ss", %0, %1)
#define regex_is_match(%0,%1) callDotnetMethod("regex.IsMatch", "ss", %0, %1)
#define regex_replace(%0,%1,%2) callDotnetMethodStr("regex.Replace", %0, sizeof(%0), "sss", %0, %1, %2) 
class regex: https://github.com/Seregamil/.NET-pl...sharp/regex.cs
example script: https://github.com/Seregamil/.NET-pl...egex/regex.pwn
Reply


Messages In This Thread
.NET Plugin - Write PLUGINS in C# - by Seregamil1 - 11.02.2016, 15:11
Re: .NET Plugin - Write PLUGINS in C# - by Seregamil1 - 11.02.2016, 15:16
Re: .NET Plugin - Write PLUGINS in C# - by Ahmad45123 - 11.02.2016, 15:35
Re: .NET Plugin - Write PLUGINS in C# - by Crayder - 11.02.2016, 16:48
Re: .NET Plugin - Write PLUGINS in C# - by erorcun - 12.02.2016, 16:29
Re: .NET Plugin - Write PLUGINS in C# - by Seregamil1 - 13.02.2016, 03:03
Re: .NET Plugin - Write PLUGINS in C# - by DevinPatino - 13.02.2016, 06:55
Re: .NET Plugin - Write PLUGINS in C# - by kristo - 13.02.2016, 07:31
Re: .NET Plugin - Write PLUGINS in C# - by Amunra - 13.02.2016, 08:43
Re: .NET Plugin - Write PLUGINS in C# - by Crayder - 13.02.2016, 19:07
Re: .NET Plugin - Write PLUGINS in C# - by Crayder - 28.02.2016, 02:55
Re: .NET Plugin - Write PLUGINS in C# - by Seregamil1 - 29.02.2016, 05:53
Re: .NET Plugin - Write PLUGINS in C# - by Crayder - 29.02.2016, 11:08
Re: .NET Plugin - Write PLUGINS in C# - by Seregamil1 - 29.02.2016, 12:00
Re: .NET Plugin - Write PLUGINS in C# - by Crayder - 01.03.2016, 05:47
Re: .NET Plugin - Write PLUGINS in C# - by Carper - 07.06.2016, 21:49

Forum Jump:


Users browsing this thread: 3 Guest(s)