Raised This Month: $ Target: $400
 0% 

Regex - Help with loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-22-2014 , 17:03   Re: Regex - Help with loop
Reply With Quote #10

You should be able to do it with submatches but you still need a loop to loop through the submatches.

Code:
^([^-]*)-([^-]*)-([^-]*)-([^-]*)$
or

Code:
^(\w*)-(\w*)-(\w*)-(\w*)$
It's been a while since I've used Regex in AMX Mod X so I can't remember for sure if you can use submatches.
__________________
fysiks is offline
 



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 21:11.


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