Raised This Month: $ Target: $400
 0% 

regexp_match problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
der_tabak
Junior Member
Join Date: Jan 2008
Old 06-26-2011 , 13:01   regexp_match problem
Reply With Quote #1

I have the following pattern:
Code:
"^"BANNED^" ^"is banned on ([^^:]*): (.*)^"$"
and I want to match for this lines:
Code:
"BANNED" "is banned on Betreutes Zocken: "idiot""
"BANNED" "is banned on Zechhalle Hamburg: VAC ban(s) on record"
"BANNED" "is banned on German Headquarter: Wallhack (D2AMX)"
"BANNED" "is banned on Bohramt: TA, FLAME, Gibt zu das er an hat..."
"BANNED" "is banned on Die wilden Siebziger: Import Bann.cfg"
"BANNED" "is banned on Psychiatrie: Autoban:  Other accounts VAC-Banned"
"BANNED" "is banned on Lost-Boy-Scouts: Autoban:  Other accounts VAC-Banned"
But I don't get any matches in AMX mod X, but the pattern from above ist working for me on regexpal.com
Code:
"BANNED" "is banned on ([^:]*): (.*)"$
I could and tried also to match with this pattern for example:
Code:
"^"BANNED^" ^"is banned on ([^^:]*): ([^^^"]*)^""
But the problem is, as you can see above the quotation marks can also occur in between the outside marks.

I'm also calling the regexp_match() function with the "m" flag.
der_tabak 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 23:28.


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