Raised This Month: $ Target: $400
 0% 

regexp_match problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FoxueR
Senior Member
Join Date: Jun 2011
Old 06-26-2011 , 19:47   Re: regexp_match problem
Reply With Quote #1

Use something like this:

PHP Code:
new numerror[128], Regex:regex
regex 
regex_matchinput_str"^"BANNED^" ^"is banned on ([^^:]+): ([^^^r]+)^"^r"numerrorcharsmaxerror ) ) 

new 
substr[64]
for ( new 
inumi++ )
{
    
regex_substrregexisubstrcharsmaxsubstr ) )

    
// do something
}

regex_freeregex 
Of course, you'll need to add error handling and such.
__________________
¯\_(ツ)_/¯
FoxueR is offline
der_tabak
Junior Member
Join Date: Jan 2008
Old 06-26-2011 , 19:48   Re: regexp_match problem
Reply With Quote #2

Yes, I'm using this method, but this extracts only the matches of the first line, and not all the matches in my string, which contains multiple occurences(lines) of this pattern.
der_tabak is offline
FoxueR
Senior Member
Join Date: Jun 2011
Old 06-26-2011 , 19:50   Re: regexp_match problem
Reply With Quote #3

You'll probably have to break it up.
__________________
¯\_(ツ)_/¯
FoxueR 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:28.


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