Regular Expressions 101

Community Patterns

url_validation_url_doğrulama

1

Regular Expression
ECMAScript (JavaScript)

"
^https?://(www.)?[A-z0-9]+\.[A-z0-9]+$
"
gm

Description

^ - This signifies the start of the expression. https?:// - This matches either "http://" or "https://". (www.)? - This makes the "www." subdomain optional. [A-z0-9]+ - This matches one or more alphanumeric characters for the domain name. . - This matches a literal period character. [A-z0-9]+ - This matches one or more alphanumeric characters for the top-level domain. $ - This signifies the end of the expression.

Türkçe olarak:

^ - Bu, ifadenin başlangıcını belirtir. https?:// - Bu, "http://" veya "https://" şeklindeki bağlantıları eşleştirir. (www.)? - Bu, "www." alt etki alanının isteğe bağlı olduğunu gösterir. [A-z0-9]+ - Bu, etki alanı adı için alfasayısal karakterleri eşleştirir. . - Bu, literal nokta karakterini temsil eder. [A-z0-9]+ - Bu, en üst düzey etki alanı için alfasayısal karakterleri eşleştirir. $ - Bu, ifadenin sonunu belirtir.

Submitted by Emre Yıldırım - 9 days ago