AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [ H3LP ] Regex (https://forums.alliedmods.net/showthread.php?t=310422)

CrazY. 09-02-2018 18:52

[ H3LP ] Regex
 
Hello, I'm newbie at regex. I'm trying to find part or whole word ignoring case sensitive, whitespace or any other word between it.

Code:

alliedmods.net
allied mods.net
a l l i e d m o d s . n e t
alli ed mo ds . net
alli bla ed bla mod bla s.net

Tried to found but no got success.

fysiks 09-02-2018 19:32

Re: [ H3LP ] Regex
 
You'd basically need to insert a ".*" in between every character.

For case insensitivity, you simply need to use the proper flag. See the documentation for regex_match().

CrazY. 09-02-2018 21:15

Re: [ H3LP ] Regex
 
Thanks.


All times are GMT -4. The time now is 06:59.

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