egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regex help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Sat Oct 21, 2006 7:45 am    Post subject: Regex help Reply with quote

Ok I need the number one into $clannumber and the The_Death_Squad into $clanname

How do I do that when there's only one line of text?

<br>Red_Rooste5
<br>1
<br>The_Death_Squad http://www.runehead.com/clans/ml.php?clan=deathsquad

~Red_Rooste5
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Oct 21, 2006 9:41 am    Post subject: Reply with quote

Code:

regexp {<br>.*?<br>(.*?)<br>(.*?)http.*?} $line match clannumber clanname

$line is the input line, and the items in () in the regex string are the bits that will be put into the variables clannumber and clanname.
Back to top
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Sat Oct 21, 2006 12:32 pm    Post subject: Reply with quote

Thanks man Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber