Author Topic: Extract Clan Tags from Nick-Name  (Read 9586 times)

0 Members and 1 Guest are viewing this topic.

Offline kaje

  • Street Thug
  • *
  • Posts: 3
    • View Profile
Re: Extract Clan Tags from Nick-Name
« Reply #15 on: September 17, 2009, 08:45:15 pm »
Hya Guys,


Here is an amended version, thanks for your comments so far.

kaje: Its a small snippet aimed at people that wish to obtain the clan tag from the players name for whatever purposes they desire.

Code: [Select]
; -----------USAGE----------
; //echo -a $FindClanTag([MK]rulk)
;
; Tags Covered: (Double Delimiter)
; [MK] (MK) =MK= ^MK^ <MK> -MK-
;
; Tags Covered: (Single Delimiter)
; ULK. ULK= L.Team*
;
; Note: Combinations of characters are also valid for
;       both double and single delimiter tags.
; --------------------------

alias FindClanTag {
  var %Double_Delim = $regex( D_DELIM, $1, /([[(=^<-]+\w+.[])=^>-]+)/ )
  var %Single_Delim = $regex( S_DELIM, $1,  (\w.+[.*=]+) )
  return $iif( %Double_Delim > 0, $regml(D_DELIM, 1), $regml(S_DELIM, 1) )
}

Dont forget, if there is any combination that you require me to add/remove dont hesitate to ask.

Kind Regards

Luke Rudge (rulk)
Thank you for explaining me.

Offline [-xerox-]

  • Street Thug
  • *
  • Posts: 2
    • View Profile
Re: Extract Clan Tags from Nick-Name
« Reply #16 on: November 05, 2010, 03:50:27 pm »
do this work ?