User Control Panel
Advertisements

HELP US, HELP YOU!

AIM parsing.

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl
View unanswered posts
Author Message
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Sun Mar 13, 2005 6:27 am    Post subject: Reply with quote

Hi,

How can i use a regex to replace â?¢ (a base64 decode to make a dot point) with a dash?

$response =~ s/â?¢/\-/g;
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Sun Mar 13, 2005 10:24 pm    Post subject: Reply with quote

$response =~ s/â\?¢/\-/g;

the question mark is also used in regex so you need to \ it out Wink

_________________
[ matt ]
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Mon Mar 14, 2005 9:20 am    Post subject: Reply with quote

ok, thanks!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group