![]() |
|
mIRC identifiers - Tanımlar mIRC Help dosyası içerisindeki tüm identifiers/tanımlar hakkında bilgi alabileceğiniz bölüm. |
![]() |
| LinkBack | Seçenekler |
#1
| ||||
| ||||
![]() Açıklama Tarihi: 1 Temmuz 2016 Konu: $regmlex(name,M,N) mircscripting.net - Feragat 25/03/2016 Tarihli, mIRC v7.44 Sürümü ile karşımıza çıkan yeni bir tanım(identifier). Orjinal açıklaması (Kaynak: http://www.mirc.com/whatsnew.txt) - Kod: 53.Added $regmlex(name,M,N) where M is the match number (in case of multiple /g global matches) and N is the () group number. If N is not specified, it defaults to 1. - Kod: $regmlex([name], M, N) If the /g modifier is used with a pattern, multiple results can be returned for that pattern. This identifier allows you to retrieve these results, where M is the Mth result and N is the () capture group number in that result. If N is not specified, it defaults to 1. This identifier supports the same properties as $regml(). Not: $regml() tanımındaki mevcut properties'ları kullanabilirsiniz. Örnekler: Kod: //echo -a $regex(abcdef,/([a-z])([a-z])/g) - 1. grup eleman sayısı: $regmlex(1,0) --- 2.grup eleman sayısı: $regmlex(2,0) --- 3.grup eleman sayısı: $regmlex(3,0) Açıklaması: - regex filtresi ile /([a-z])([a-z])/g text'i 2 şer elemanlı gruplar halinde gruplandırdı. - Kod: 1.grup: a - b = $regmlex(1,1) - $regmlex(1,2) 2.grup: c - d = $regmlex(2,1) - $regmlex(2,2) 3.grup: e - f = $regmlex(3,1) - $regmlex(3,2) Başka bir örnek: Kod: //echo -a $regex(abcdef,/([a-z])([a-z])([a-z])/g) - 1. grup eleman sayısı: $regmlex(1,0) --- 2.grup eleman sayısı: $regmlex(2,0) Açıklaması: - belirtilen regex filtresi ile /([a-z])([a-z])([a-z])/g text'i, 3'er elemanlı 2 grup olarak gruplandırdı. Kod: 1.grup: a - b - c = $regmlex(1,1) - $regmlex(1,2) - $regmlex(1,3) 2.grup: d - e - f = $regmlex(2,1) - $regmlex(2,2) - $regmlex(2,3)
__________________ Vi veri veniversum vivus vici.. |
Sponsored Links |
![]() |
Etiketler |
$regex, $regmlex, regex, regmlex |
Seçenekler | |
| |