Sign In

 

 

C# Regex Kullanımı (Regular Expressions – Düzenli İfadeler)C# Regex Kullanımı (Regular Expressions – Düzenli İfadeler)2502016-12-05T14:05:00Z 5.12.2016 14:05:00Sinan Bozkuş<div class="ExternalClassE52B76C90006467E8D13726119C75F30"><strong style="color:#525252;font-family:lato, helvetica, sans-serif;font-size:14px;box-sizing:border-box;">Re​gex</strong><span style="background-color:#ffffff;color:#525252;font-family:lato, helvetica, sans-serif;font-size:14px;"> bir string ifadenin (metin) belirli kurallara uyumluluğunu kontrol etmeye ve düzenlemeye yarar.</span><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Açılımı <strong style="box-sizing:border-box;">Regular Expressions</strong>, Türkçesi ise <strong style="box-sizing:border-box;">Düzenli İfadeler</strong> olarak geçer.<br style="box-sizing:border-box;">Regex ile bir alana sadece harf mi girilmiş, rakam mı girilmiş ya da eposta adresi mi girilmiş kontrol edebilirsiniz.</p><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;"><span style="box-sizing:border-box;"></span></p><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">C# içerisinde Regex kullanabilmek için <strong style="box-sizing:border-box;">System.Text.RegularExpression</strong> kütüphanesini eklememiz gerekmektedir.</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:740px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:708.8px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp keyword" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:#006699 !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-weight:bold !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">using</code> <code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">System.Text.RegularExpressions;</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;"><strong style="box-sizing:border-box;">Örnek Kullanım:</strong></p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:740px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div><div class="line number2 index1 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">2</div><div class="line number3 index2 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">3</div><div class="line number4 index3 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">4</div><div class="line number5 index4 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">5</div><div class="line number6 index5 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">6</div></td><td class="code" style="width:708.8px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">Regex r = </code><code class="csharp keyword" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:#006699 !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-weight:bold !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">new</code> <code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">Regex(</code><code class="csharp string" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:blue !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">@"Regex formatı bu alana gelecektir..."</code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">);</code></div><div class="line number2 index1 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"> </div><div class="line number3 index2 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp keyword" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:#006699 !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-weight:bold !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">if</code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">(r.IsMatch(txtVeri.Text))</code></div><div class="line number4 index3 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp spaces" style="color:#dd1144;white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;"> </code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">MessageBox.Show(</code><code class="csharp string" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:blue !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">"Geçerli"</code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">);</code></div><div class="line number5 index4 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp keyword" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:#006699 !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-weight:bold !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">else</code></div><div class="line number6 index5 alt1" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp spaces" style="color:#dd1144;white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;"> </code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">MessageBox.Show(</code><code class="csharp string" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:blue !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">"Hatalı"</code><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">);</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Yukarıdaki örnekte olduğu gibi yeni bir Regex oluştururken içerisine formatını göndermeniz yeterli olacaktır.<br style="box-sizing:border-box;">Regex formatları içerisinde C#’a özel karakterler içerebileceğinden Regex formatı (string ifade) yazılmadan önce bu karakterleri kullanabilmek için başına @ işareti eklenmiştir.</p><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Sıkça kullanılan Regex Formatları:</p><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Sadece Harf:</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:740px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:708.8px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">^[a-zA-Z]*$</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Sadece Rakam:</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:740px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:708.8px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">^[0-9]*$</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Eposta Adresi:</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:740px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:708.8px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">IP Adresi:</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:2030.4px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:1999.2px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Kredi Kartı:</p><div style="box-sizing:border-box;color:#333333;font-family:lato, helvetica, sans-serif;font-size:14px;background-color:#ffffff;"><div class="syntaxhighlighter csharp" style="box-sizing:border-box;width:740px;margin:1em 0px !important;overflow-x:auto !important;overflow-y:hidden !important;font-size:1em !important;"><table border="0" cellpadding="0" cellspacing="0" style="max-width:100%;border-spacing:0px;width:829.6px;box-sizing:content-box !important;background:none !important;border-radius:0px !important;border-style:initial !important;border-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;table-layout:auto !important;"><tbody style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><tr style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><td class="gutter" style="box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;color:#afafaf !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border-width:0px 3px 0px 0px !important;border-top-style:initial !important;border-right-style:solid !important;border-bottom-style:initial !important;border-left-style:initial !important;border-top-color:initial !important;border-right-color:#6ce26c !important;border-bottom-color:initial !important;border-left-color:initial !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 0.5em 0px 1em !important;right:auto !important;text-align:right !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;">1</div></td><td class="code" style="width:798.4px;box-sizing:content-box !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="container" style="box-sizing:content-box !important;width:auto !important;margin:0px !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;outline:0px !important;overflow:visible !important;padding:0px !important;right:auto !important;top:auto !important;vertical-align:baseline !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;"><div class="line number1 index0 alt2" style="box-sizing:content-box !important;border-radius:0px !important;background-position:initial !important;background-size:initial !important;background-repeat:initial !important;background-attachment:initial !important;background-origin:initial !important;background-clip:initial !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;padding:0px 1em !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;font-size:1em !important;direction:ltr !important;box-shadow:none !important;white-space:pre !important;"><code class="csharp plain" style="white-space:nowrap;box-sizing:content-box !important;padding:0px !important;font-family:monaco, consolas, "bitstream vera sans mono", "courier new", courier, monospace !important;font-size:1em !important;color:black !important;border-radius:0px !important;background:none !important;border:0px !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0px !important;outline:0px !important;overflow:visible !important;right:auto !important;top:auto !important;vertical-align:baseline !important;width:auto !important;direction:ltr !important;box-shadow:none !important;display:inline !important;">^((4\d{3})|(5[1-5]\d{2}))(-?|\040?)(\d{4}(-?|\040?)){3}|^(3[4,7]\d{2})(-?|\040?)\d{6}(-?|\040?)\d{5}</code></div></div></td></tr></tbody></table></div></div><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Bunlar dışında yüzlerce Regex formatı vardır, bu formatlara dünya’nın en büyük regex arşivi olan <span class="ms-rteForeColor-8" style="box-sizing:border-box;text-decoration:underline;"><a href="http://regexlib.com/" target="_blank" style="box-sizing:border-box;">regexlib.com</a></span> adresinden ulaşabilirsiniz.</p><p style="box-sizing:border-box;font-size:14px;color:#525252;font-family:lato, helvetica, sans-serif;background-color:#ffffff;">Kredi kartı, T.C kimlik no, alan adı gibi kontrollerinizi Regex yerine kendi algoritmalarıyla kontrol etmeniz daha fazla doğruluk oranı sağlayacaktır. Regex’i daha çok eposta, harf, rakam gibi basit kontrollerinizde kullanabilirsiniz.​</p></div>csharp-regex-kullanimi-regular-expressions-duzenli-ifadelerhttps://www.bilgeadam.com/blog/Lists/Photos/PostImages/regex.jpg​Re​gex bir string ifadenin (metin) belirli kurallara uyumluluğunu kontrol etmeye ve düzenlemeye yarar. Açılımı Regular Expressions, Türkçesi ise Düzenli İfadeler olarak geçer.bluePROYazılım

Yazara Soru Sor




SORU GÖNDER