Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Regex


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-02-2018 , 18:52   [ H3LP ] Regex
Reply With Quote #1

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.
__________________









Last edited by CrazY.; 09-02-2018 at 21:15.
CrazY. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-02-2018 , 19:32   Re: [ H3LP ] Regex
Reply With Quote #2

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().
__________________
fysiks is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-02-2018 , 21:15   Re: [ H3LP ] Regex
Reply With Quote #3

Thanks.
__________________








CrazY. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:02.


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