IRCRehberi.Net- Türkiyenin En iyi IRC ve Genel Forum Sitesi  
 sohbet
derya sohbet


mIRC Scripting Dersleri mIRC veya IRC komutları hakkında detaylı anlatım makalelerine bu başlık altından ulaşabilirsiniz.

3Beğeni(ler)
  • 2 Post By Feragat
  • 1 Post By oMeN


 
 
Seçenekler Stil
Alt 01 Temmuz 2022, 21:42   #1
Özel Üye
Feragat - ait Kullanıcı Resmi (Avatar)

Wink $regerrstr - Regex Error String Identifier | mIRC 7.51

Anlatım Tarihi: 16 Haziran 2019
Hazırlayan: Feragat
Konu: $regerrstr

18/09/2017 tarihinde yayınlanan mIRC 7.51 versiyonuna eklenen yeni bir tanım.

Mirc.chm açıklaması

Kod

$regerrstr
Returns the error string provided by the regular expression library for a failed evaluation.
Açıklama: Regular Expression(regex) Kütüphanesi tarafından başarısız bir değerlendirme için verilen hata mesajını döndürür.

* Parametre veya Properties bulunmamaktadır.

Hata listesi:
-

Kod

1: \ at end of pattern
2: \c at end of pattern
3: unrecognized character follows \
4: numbers out of order in {} quantifier
5: number too big in {} quantifier
6: missing terminating ] for character class
7: invalid escape sequence in character class
8: range out of order in character class
9: nothing to repeat
10: [this code is not in use]
11: internal error: unexpected repeat
12: unrecognized character after (? or (?-
13: POSIX named classes are supported only within a class
14: missing )
15: reference to non-existent subpattern
16: erroffset passed as NULL
17: unknown option bit(s) set
18: missing ) after comment
19: [this code is not in use]
20: regular expression is too large
21: failed to get memory
22: unmatched parentheses
23: internal error: code overflow
24: unrecognized character after (?<
25: lookbehind assertion is not fixed length
26: malformed number or name after (?(
27: conditional group contains more than two branches
28: assertion expected after (?(
29: (?R or (?[+-]digits must be followed by )
30: unknown POSIX class name
31: POSIX collating elements are not supported
32: this version of PCRE is compiled without UTF support
33: [this code is not in use]
34: character value in \x{} or \o{} is too large
35: invalid condition (?(0)
36: \C not allowed in lookbehind assertion
37: PCRE does not support \L, \l, \N{name}, \U, or \u
38: number after (?C is > 255
39: closing ) for (?C expected
40: recursive call could loop indefinitely
41: unrecognized character after (?P
42: syntax error in subpattern name (missing terminator)
43: two named subpatterns have the same name
44: invalid UTF-8 string (specifically UTF-8)
45: support for \P, \p, and \X has not been compiled
46: malformed \P or \p sequence
47: unknown property name after \P or \p
48: subpattern name is too long (maximum 32 characters)
49: too many named subpatterns (maximum 10000)
50: [this code is not in use]
51: octal value is greater than \377 in 8-bit non-UTF-8 mode
52: internal error: overran compiling workspace
53: internal error: previously-checked referenced subpattern not found
54: DEFINE group contains more than one branch
55: repeating a DEFINE group is not allowed
56: inconsistent NEWLINE options
57: \g is not followed by a braced, angle-bracketed, or quoted name/number or by a plain number
58: a numbered reference must not be zero
59: an argument is not allowed for (*ACCEPT), (*FAIL), or (*COMMIT)
60: (*VERB) not recognized or malformed
61: number is too big
62: subpattern name expected
63: digit expected after (?+
64: ] is an invalid data character in JavaScript compatibility mode
65: different names for subpatterns of the same number are not allowed
66: (*MARK) must have an argument
67: this version of PCRE is not compiled with Unicode property support
68: \c must be followed by an ASCII character
69: \k is not followed by a braced, angle-bracketed, or quoted name
70: internal error: unknown opcode in find_fixedlength()
71: \N is not supported in a class
72: too many forward references
73: disallowed Unicode code point (>= 0xd800 && <= 0xdfff)
74: invalid UTF-16 string (specifically UTF-16)
75: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN)
76: character value in \u.... sequence is too large
77: invalid UTF-32 string (specifically UTF-32)
78: setting UTF is disabled by the application
79: non-hex character in \x{} (closing brace missing?)
80: non-octal character in \o{} (closing brace missing?)
81: missing opening brace after \o
82: parentheses are too deeply nested
83: invalid range in character class
84: group name must start with a non-digit
85: parentheses are too deeply nested (stack check)
Karma Örnekler:

1-

Kod

//echo -a $regex(deneme,/denem(e){30000}/) - $regerrstr
-
Sonuç: 0 - regular expression is too large (Parantez içindeki değerin regex için çok büyük olduğu uyarısı)

2- Bu hata ise hexadecimal karakterin kapanış ayraç hatasını yansıtıyor

Kod

//echo -a $regex(deneme,/den\x{65}me) - $regerrstr
Sonuç: \x65 veya \x{65} e karakteri ile eşleştiği için herhangi bir hata vermedi
-

Kod

//echo -a $regex(deneme,/den\x{65me) - $regerrstr
Sonuç: 0 - non-hex character in \x{} (closing brace missing?) - Parantez Kapanmadığı için hex karakteri tanımlayamadı ve hata verdi.
3- [ ] Sınıflandırma ve elşeştirme parantezi kapanmadığı için alınan bir uyarı.

Kod

//echo -a $regex(deneme,/den[eme) - $regerrstr 
Sonuç: 0 - missing terminating ] for character class
4- PCRE - Perl Compatible Regular Expressions (Perl Uyumlu Düzenli İfadeler) tarafından desteklenmeyen operatörler kullanıldığında alınan uyarı.

Kod

//echo -a $regex(deneme,/den\Lme/) - $regerrstr
//echo -a $regex(deneme,/den\Ume/) - $regerrstr
Sonuç: 0 - PCRE does not support \L, \l, \N{name}, \U, or \u
5- Regex kalıbının sonunda kullanılan \ karakter için uyarı.

Kod

//echo -a $regex(deneme,/deneme\/) - $regerrstr
Sonuç: 0 - \ at end of pattern
6- Var olmayan referans hatası, e harfi text sonunda 1 kez tekrar ettiği için yakalanan verinin referansı \1 olmalı yani denemee = denem(e)\1 buradaki \1 e yi temsil ettiği için sonuç doğru. \2 de çalışmama mantığı ise text'in denemeee olmamasıdır. Eğer denemeee = denem(e)\2 yani parantez içinde yakalanan e harfi kendisi dışında 2 kez daha tekrar ediyor olsaydı çalışırdı. 1 kez tekrar ettiği için hata verdi.

Kod

Doğru:   //echo -a $regex(denemee,/denem(e)\1/) - $regerrstr 
Yanlış:  //echo -a $regex(denemee,/denem(e)\2/) - $regerrstr
Sonuç:   0 - reference to non-existent subpattern
Daha fazla hata-sonuç ilişkisi için belirtilen versiyon ve üzeri versiyonlarda denemeler yapabilirsiniz. Benden şimdilik bu kadar.

mIRC 7.51 ve üzeri versiyonlar kullanıyorsanız regex kullanırken faydalı bir tanım olacaktır. En azından hatayı bulmak daha kolay hale gelebilir.
________________

The Ghost of Christmas Past..

i'm here sometimes
 
Alt 03 Temmuz 2022, 07:24   #2
Standart

Emeğinize sağlık

 
Alt 06 Temmuz 2022, 20:54   #3
Sim
civciv~🐥
Sim - ait Kullanıcı Resmi (Avatar)

Standart

emeginize saglik, paylasim icin tesekkürler

________________

Hope. . . ✨
 
Alt 11 Temmuz 2022, 13:45   #4
Yanlış Bildiğin Yolda; Herkesle yürüyeceğine Doğru Bildiğin Yolda; Tek başına yürü..
Artist - ait Kullanıcı Resmi (Avatar)

Standart

Paylaşım için teşekkürler emeğinize sağlık

________________

$regerrstr - Regex Error String Identifier | mIRC 7.51
 
Alt 11 Temmuz 2022, 13:45   #5
Standart

emeginize saglik

________________

No MoRe DramA
 
Alt 11 Temmuz 2022, 13:46   #6
SosiN - ait Kullanıcı Resmi (Avatar)

Standart

Emeğinize sağlık.

________________


$regerrstr - Regex Error String Identifier | mIRC 7.51
 
Alt 11 Temmuz 2022, 17:25   #7
She
✰ ÖzeL..
She - ait Kullanıcı Resmi (Avatar)

Standart

Değerli konu paylaşımı için teşekkür ederiz

________________

~ E & B ~
 
Alt 13 Temmuz 2022, 10:22   #8
Mix
★ GeneraL ★
Mix - ait Kullanıcı Resmi (Avatar)

Standart

Emeğinize sağlık.

 
Alt 16 Temmuz 2022, 17:24   #9
✰ ÖzeL..
oMeN - ait Kullanıcı Resmi (Avatar)

Standart

Anlatım ve Tanıtım 10 numara olmuş dostum emeğine sağlık sağolasın böyle kıymetli konuları paylaştığın için

________________

Edep; aklın Tercümanıdır. İnsan edebi kadar akıllı, Aklı kadar şerefli, Şerefi kadar Kıymetlidir. Massive..




~ E & B ~
 
Alt 16 Temmuz 2022, 17:26   #10
dae
Les yeux sans visage
dae - ait Kullanıcı Resmi (Avatar)

Standart

Tebrikler .^^

________________

 


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı





Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 10:58.