Raised This Month: $ Target: $400
 0% 

regexp_match problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
der_tabak
Junior Member
Join Date: Jan 2008
Old 06-26-2011 , 17:49   Re: regexp_match problem
Reply With Quote #1

Look at my first pattern, its already AMXX escaped, but it looks like the $ sign does not act like it should.

This is my unescaped regex pattern:
Code:
"BANNED" "is banned on ([^:]*): (.*)"$
It's working on regexpal.com properly with the lines in my first post.

AMXX escaped this looks like this:
Code:
"^"BANNED^" ^"is banned on ([^^:]*): (.*)^"$"
But I don't get any matches for lines like:
Code:
"BANNED" "is banned on Zechhalle Hamburg: VAC ban(s) on record"
"BANNED" "is banned on Betreutes Zocken: "idiot""

Last edited by der_tabak; 06-26-2011 at 17:52.
der_tabak is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-26-2011 , 18:43   Re: regexp_match problem
Reply With Quote #2

"BANNED" "is banned on ([^:]+): (.+)"

Works on all different test data you provided.

Code:
] regex_pattern ""BANNED" "is banned on ([^:]+): (.+)""
Pattern set to: "BANNED" "is banned on ([^:]+): (.+)"
] regex_test ""BANNED" "is banned on Betreutes Zocken: "idiot"""
3 matches
1. ""BANNED" "is banned on Betreutes Zocken: "idiot"""
2. "Betreutes Zocken"
3. ""idiot""
] regex_test ""BANNED" "is banned on Zechhalle Hamburg: VAC ban(s) on record""
3 matches
1. ""BANNED" "is banned on Zechhalle Hamburg: VAC ban(s) on record""
2. "Zechhalle Hamburg"
3. "VAC ban(s) on record"
] regex_test ""BANNED" "is banned on German Headquarter: Wallhack (D2AMX)""
3 matches
1. ""BANNED" "is banned on German Headquarter: Wallhack (D2AMX)""
2. "German Headquarter"
3. "Wallhack (D2AMX)"
] regex_test ""BANNED" "is banned on Bohramt: TA, FLAME, Gibt zu das er an hat...""
3 matches
1. ""BANNED" "is banned on Bohramt: TA, FLAME, Gibt zu das er an hat...""
2. "Bohramt"
3. "TA, FLAME, Gibt zu das er an hat..."
] regex_test ""BANNED" "is banned on Die wilden Siebziger: Import Bann.cfg""
3 matches
1. ""BANNED" "is banned on Die wilden Siebziger: Import Bann.cfg""
2. "Die wilden Siebziger"
3. "Import Bann.cfg"
] regex_test ""BANNED" "is banned on Psychiatrie: Autoban:  Other accounts VAC-Banned""
3 matches
1. ""BANNED" "is banned on Psychiatrie: Autoban:  Other accounts VAC-Banned""
2. "Psychiatrie"
3. "Autoban:  Other accounts VAC-Banned"
] regex_test ""BANNED" "is banned on Lost-Boy-Scouts: Autoban:  Other accounts VAC-Banned""
3 matches
1. ""BANNED" "is banned on Lost-Boy-Scouts: Autoban:  Other accounts VAC-Banned""
2. "Lost-Boy-Scouts"
3. "Autoban:  Other accounts VAC-Banned"
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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