Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Xerakon
Apprentice


Joined: 10 May 2011
Posts: 111

PostPosted: Fri Oct 13, 2017 11:35 pm   

Mass Capture Pattern
 
Hey guys,

I'm trying to capture a mass list and store them into a variable list. Here is an example of the mud printout:

Code:

  0(0)> Human           1(0)> Wookiee         2(0)> Twi'lek         3(0)> Rodian       
  4(0)> Hutt            5(0)> Mon_calamari    6(0)> Aqualish        7(0)> Gamorrean     
  8(0)> Jawa            9(0)> Barabel        11(0)> Verpine        12(0)> Bith         
 13(0)> Trandoshan     14(0)> Khommite       15(0)> Firrerreo      16(0)> Sullustan     
 17(0)> Bothan         19(0)> Falleen        20(0)> Lorrdian       21(0)> Duros         
 22(2)> Chiss          23(2)> Dathomiri      24(0)> Naboo          25(0)> Defel         
 26(0)> Sluissi        27(0)> Whiphid        28(0)> Zabrak         30(0)> Zeltron       
 31(0)> Quarren        32(0)> Toydarian      33(0)> Muun           34(0)> Sith         
 35(0)> Ithorian       36(0)> Devaronian     38(1)> Miraluka       39(0)> Abyssin       
 40(0)> Arkanian       41(0)> Balosar        42(0)> Baragwin       43(0)> Besalisk     
 44(0)> Cerean         45(0)> Chagrian       46(0)> Corellian      47(0)> Dug           
 48(0)> Echani         49(0)> Gand           50(0)> Geonosian      51(0)> Iktotchi     
 52(0)> Kel_dor        53(0)> Kubaz          54(0)> Lannik         55(0)> Nautolan     
 56(0)> Neimoidian     57(1)> Noghri         58(0)> Omwati         59(0)> Quermian     
 60(0)> Talz           61(0)> Togruta        62(0)> Toong          63(0)> T'Surr       
 64(0)> Ubese          65(0)> Vurk           66(0)> Weequay        67(0)> Wroonian     
 68(0)> Alderaanian    69(0)> Pau'an         70(0)> Dashade        71(0)> Utai         
 72(0)> Kaminoan       74(1)> Hapan          75(0)> Mandalorian    78(0)> Ryn           
 79(0)> Draethos       82(1)> Kiffar         83(1)> Scout_droid    85(0)> Givin         
 86(0)> Feeorin        87(0)> Gungan         88(0)> Gran           89(0)> Mirialan     
 94(0)> War_droid      95(0)> Astromech      97(0)> Gotal          99(0)> Kaleesh       
100(1)> Cathar        106(0)> Nikto         107(0)> unused           


So I've set down to creating the standard sort of pattern:
Code:
(*)~((*)~)~> (*)           (*)~((*)~)~> (*)         (*)~((*)~)~> (*)         (*)~((*)~)~> (*)


But it doesn't capture everything. And it won't capture the lines with three items (or less when the list changes).

Any idea on what sort of pattern I can use to accomplish this?

Thanks!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sat Oct 14, 2017 7:38 am   
 
#TR {(%d)~((%d)~)~> (%x)} {stuff}

Is what i would use, and then toggle the repeat within line option.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net