|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: Thu Nov 09, 2006 11:01 am
Is there a way to count how many specific characters? |
In perl wrote: |
^([a-z,A-Z,' ']+): (\#+) |
So my trigger captures the name of the spell/skill and the #'s but is there a way to count the # characters so i could store how many rounds the skill/spell has left?
Something like %count(%2) or #Count temp %2. |
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Thu Nov 09, 2006 7:21 pm |
%len(%2)
|
|
_________________ Taz :) |
|
|
|
|
|