Regular Expression Pratikleri

Onur Dayıbaşı
Jul 27, 2017 · 1 min read

http://regexrenamer.sourceforge.net/help/regex_quickref.html

Çokça karşımıza çıkan, yazmakta zorlandığımız Regular Expression konusunda sürekli karşıma çıkan regular expressionları bu yazıda topluyor olacağım..

TAG Başlangıç — Bitiş

xml, html vs.. tag başlangıç ve bitiş değerleri oluşturup içerisindeki $!abc!$ $!xyz!$ içerisinde geçen tüm kelimleri silmek istiyorsunuz

function escapeRegExp(str) {
var regex = /\$!(.*?)!\$/g;
return str.replace(regex, “”);
}

resources.AWS-DynamoDB.name , names gibi patterni kapsayan Regex

Burada (\w|\.|\-)+ . burda
\w => Matches alphanumeric (same as [a-zA-Z0–9_]) ve tekrar edebilmesi için | karakterlerimizi ve bunları + ile bu karakterlerin tekrarladığı kadar alabilmesi sağlanır.

Frontend Development With JS

Frontend Development With Javascript

Onur Dayıbaşı

Written by

Senior Frontend Developer at Thundra

Frontend Development With JS

Frontend Development With Javascript

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade