Raised This Month: $ Target: $400
 0% 

Solved Regex Argument Type Mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 05-03-2017 , 22:35   Re: Regex Argument Type Mismatch
Reply With Quote #4

Quote:
Originally Posted by Chaosxk View Post
PHP Code:
Regex CountDown = new Regex("/{CountDown:([1-9]+)}/"PCRE_CASELESSRegexErrsizeof RegexErrCountDownError);
//do something
delete CountDown
Not sure what you mean by the 2nd question.
Thanks. My second question was that in PHP, the match's 0th index is the entire substring that matches the pattern. But in GetSubString, 0th is already the first regex capture group

http://php.net/manual/en/function.preg-match.php

Quote:
If matches is provided, then it is filled with the results of search. $matches[0] will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.
RumbleFrog is offline
 


Thread Tools
Display Modes

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:23.


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