Raised This Month: $ Target: $400
 0% 

regex pattern


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iMack
Junior Member
Join Date: Jul 2010
Old 07-18-2010 , 09:39   regex pattern
Reply With Quote #1

what is bad in this pattern for regex_match
Code:
(.*)(\^\!\°\`\;\%\§)(.*)
iMack is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-18-2010 , 12:30   Re: regex pattern
Reply With Quote #2

What are you trying to match? And what are you trying to retrieve as substrings? Show some examples. I'm going to assume that you are using parentheses when you whould use brackets.
__________________

Last edited by fysiks; 07-18-2010 at 12:44.
fysiks is offline
iMack
Junior Member
Join Date: Jul 2010
Old 07-18-2010 , 12:51   Re: regex pattern
Reply With Quote #3

i'm trying to match these "!, $, %, ^, &, §, ', ;" characters in player name.
iMack is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-18-2010 , 12:59   Re: regex pattern
Reply With Quote #4

Quote:
Originally Posted by iMack View Post
i'm trying to match these "!, $, %, ^, &, §, ', ;" characters in player name.
yeah, but what are you trying to do with it? Do you need the string before and after that character? If you are just tring to find if the name contains one of those characters then you probably don't need regex.
__________________
fysiks is offline
iMack
Junior Member
Join Date: Jul 2010
Old 07-18-2010 , 13:24   Re: regex pattern
Reply With Quote #5

i want only find that character in name... i tried to use contain function, but
"if ( contain( name, "^") != -1)" wrote invalid symbol in compliling
iMack is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-18-2010 , 13:46   Re: regex pattern
Reply With Quote #6

Quote:
Originally Posted by iMack View Post
i want only find that character in name... i tried to use contain function, but
"if ( contain( name, "^") != -1)" wrote invalid symbol in compliling
Use "^^" for the ^ character.
__________________
fysiks is offline
iMack
Junior Member
Join Date: Jul 2010
Old 07-18-2010 , 14:04   Re: regex pattern
Reply With Quote #7

ok thx
iMack 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 07:04.


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