| View previous topic :: View next topic |
| Author |
Message |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Sat Oct 21, 2006 7:45 am Post subject: Regex help |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Oct 21, 2006 9:41 am Post subject: |
|
|
| 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 |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Sat Oct 21, 2006 12:32 pm Post subject: |
|
|
Thanks man  |
|
| Back to top |
|
 |
|