Raised This Month: $51 Target: $400
 12% 

Regex Questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-02-2018 , 08:22   Regex Questions
Reply With Quote #1

I have a couple of regex questions for the devs.

1. Does Sourcemod 's regex API support the global flag?
> EG: Can you return more than one pattern match?
>> I can only get one pattern return, the match returns the substring count

2. Can you get the offset/start position of each substring?

https://regex101.com/r/2vq9IZ/1
__________________
Neuro Toxin is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-05-2018 , 15:14   Re: Regex Questions
Reply With Quote #2

It’s always global and use sm 1.9 for the rest
Dr!fter is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-05-2018 , 19:06   Re: Regex Questions
Reply With Quote #3

<3

Any chance of a merge into 1.8?

The 1.9 compiler function coersing is stopping me compiling Dynamic which this is for.
__________________
Neuro Toxin is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-06-2018 , 08:37   Re: Regex Questions
Reply With Quote #4

0 chance
Dr!fter is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-06-2018 , 08:54   Re: Regex Questions
Reply With Quote #5

Aw.

Thanks for taking the time to patch up Regex!!!!
__________________
Neuro Toxin 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 06:02.


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