ScriptCore3.ExecRegExpr

function ExecRegExpr(const ARegExpr, AInputStr: string): boolean ARegExpr: Regular Expression AInputStr: Input string Result: True if AInputString matches reg.exp. ARegExpr

Description
Function checks if string AInputString matches regular expression ARegExpr

Exception will not be raised if there are syntax errors in ARegExpr.

For detailed information about Regular Expressions see Regular_Expression on Wikipedia

Example
Below example provides a script to test multiple calls.

Console output
13-08-25 14:54:25   Console Log Started 13-08-25 14:54:26 Welcome to Soldat 1.6.5 13-08-25 14:54:26 [*] Preparing scripts to be launched 13-08-25 14:54:26 [*] [Testing] Compilation started 13-08-25 14:54:26 [*] [Testing] Compilation complete 13-08-25 14:54:26 [*] [Testing] Loading bytecode 13-08-25 14:54:26 [*] [Testing] Bytecode loaded 13-08-25 14:54:26 [*] Done 13-08-25 14:54:26 -- ExecRegExpr Test Start -- 13-08-25 14:54:26 /buy (steyr|eagles|hk) 13-08-25 14:54:26    TRUE     /buy steyr 13-08-25 14:54:26    TRUE     /buy hk 13-08-25 14:54:26     FALSE    /buy m79 13-08-25 14:54:26 /login [A-Za-z0-9_]*[ \t][A-Za-z0-9_]*$ 13-08-25 14:54:26    FALSE    /login UserNamePassword 13-08-25 14:54:26    TRUE     /login UserName Password 13-08-25 14:54:26    FALSE    /login User Name Password haha 13-08-25 14:54:26    TRUE     /login User_Name01 MyP4sS 13-08-25 14:54:26 /longword [A-Za-z0-9]{10,20}$ 13-08-25 14:54:26    FALSE    /longword 8letters 13-08-25 14:54:26    TRUE     /longword 10lettersk 13-08-25 14:54:26    TRUE     /longword 20LettersAreStillOk1 13-08-25 14:54:26    FALSE    /longword 21LettersAreAlreadyNot 13-08-25 14:54:26 -- ExecRegExpr Test Stop -- 13-08-25 14:54:26 ctf_Ash by chakapoko maker 13-08-25 14:54:26 ASE Port: 23196 13-08-25 14:54:26 Connection for file server started. Port: 23083 13-08-25 14:54:26 Registering server @ ASE Master Server 13-08-25 14:54:26 Registering server @ 67.23.118.179