4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> badPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> `\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">geek@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">GEEK@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks@Geeks`\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">pass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /(?=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)((?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[A-Z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[a-z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[0-9]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[|!@\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\[\\]\\(\\)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">?$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(pass)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">goodPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> \"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">%G\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">[e](e)?k@1&3$\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">badPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"geek@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"GEEK@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks@Geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">A-Z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">a-z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">0-9\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">|!\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPassword\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(term, text):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(term, text, re.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">MULTILINE\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases, we are returning \u003ccode>True/False\u003c/code> if the password provided matches the requirements.\u003c/p>\n\u003ch3 id=\"regex-for-urls\">RegEx for URLs\u003c/h3>\n\u003cp>Javascript\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">// Check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">url\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">\tconst\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(((https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp):\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> \treturn\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">\t}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^(((\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">:\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)([\\w])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(regex, url))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases we are returning a boolean (\u003ccode>true/false\u003c/code>) if the URL is valid.\u003c/p>\n\u003cp>You can learn more about this topic and others related at \u003ca href=\"https://4geeks.com/\">4Geeks\u003c/a>. Hope you enjoyed the reading and keep on the Geek side!\u003c/p>","section_id":"article-gnx7dr","paddingY":{"desktop":"sm"},"maxWidth":{"desktop":"xl"},"_variableFields":{"content":"{{ single.content | how to content }}"},"_variableKeys":{"content":"content"},"_imageSizes":{}}],"singleEntry":{"id":821,"slug":"regex-examples","title":"RegEx Examples: Mastering Regular Expressions with Practical Cases","description":"On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction","language":"en","translations":{"us":"regex-examples"},"updated_at":"2025-07-16T20:02:03.222Z","image_url":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","technologies":["javascript","python","regular-expression","snippet"],"content":"Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including [Javascript](https://4geeks.com/lesson/what-is-javascript-learn-to-code-in-javascript), Python, and Ruby. For those looking to learn more about regex, a [regex tutorial](https://4geeks.com/lesson/regex-tutorial-regular-expression-examples) is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.\n\n## What are Regular Expressions (RegEx) patterns?\n\nA RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.\n\nCreating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.\n\n### RegEx for emails\n\nEmails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.\n\n### RegEx email inside text\n\nJavascript\n```javascript\n// We receive a text like this, and we want to extract the email address\nconst text = `My name is Geek and my email address is geek@4geeksacademy.com`;\n\nconst findEmail = (str) =>{\n const regex = /\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b/mg;\n return str.match(regex)\n}\n\nconsole.log(findEmail(text))\n//Output -> [geek@4geeksacademy.com]\n```\n\nPython\n```python\ndataset = \"My name is Geek and my mail address is geek@4geeksacademy.com\";\nregex = r\"\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b\"\n\ndef findEmail(term, text):\n match = re.search(term, text)\n return match\n\nprint(findEmail(regex, dataset))\n#Output -> \u003cre.Match object; span=(39, 61), match='geek@4geeksacademy.com'>\n```\n\n### RegEx email \n\nJavascript\n```javascript\n// Check valid email\nconst text = `geek@4geeksacademy.com`;\n\nconst validEmail = (str) =>{\n const regex = new RegExp(\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\")\n return regex.test(str)\n}\n//Output: true\n```\nSince we are checking if the email address has the correct pattern, we are using the `test` method to receive a `true/false` response.\n\nPython\n```python\n#Check valid email\ndataset = \"geek@4geeksacademy.com\"\nregex = r\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\"\ndef validEmail(term, text):\n match = bool(re.search(term, text))\n return match\n\nprint(validEmail(regex, dataset))\n#Output -> True\n```\n\nSince we are checking if the email address has the correct pattern, we are using the `bool` to receive a `true/false` response.\n\n## Numbers **without** decimals (Int)\n\nJavascript\n```javascript\n//Check integer\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkInt = (str) =>{\n const regex = /^(\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkInt(text))\n//Output -> [15]\n```\n\nPython\n\n```python\n#Check integer\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregex = r\"^(\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regex, number))\n#output -> \u003cre.Match object; span=(0, 2), match='15'>\n```\n\n## RegEx decimal numbers (float)\n\nJavascript\n\n```javascript\n#Check float\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkFloat = (str) =>{\n const regex = /^(\\d*)[.,](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkFloat(text))\n//Output -> [ '12.3', '56,7' ]\n```\n\nPython\n\n```python\n#Check Float\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregexFloat = r\"^(\\d*)[.,](\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.findall(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regexFloat, number))\n#output -> [('12', '3'), ('56', '7')]\n```\nWe are using the `findall()` method because we have more than one in our dataset, if you would only want one result, use the `search()` method instead. The output would be `\u003cre.Match object; span=(3, 7), match='12.3'>`\n\n\n### Regex for decimals \n\nJavascript\n\n```javascript\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkDecimals = (str) =>{\n const regex = /^(\\d+)[\\/](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkDecimals(text))\n//Output -> [ '12/4' ]\n```\nPython\n\n```python\n#Check decimals\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\n\nregexDecimals = r\"^(\\d+)[\\/](\\d+)$\"\ndef checkDecimals(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkDecimals(regexDecimals, number))\n#Output -> \u003cre.Match object; span=(13, 17), match='12/4'>\n```\n\n### RegEx for strong password validation\n\nA strong password consists on a minimum length of 6 characters and at least: \n- 1 uppercase\n- 1 lowercase\n- 1 number\n- 1 special character\n\nJavascript\n```javascript\n#Check password\nconst goodPass = `%G[e](e)?k@1&3 RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\nconst badPass = `\ngeek@123 \nGEEK@123 \nGeeks123 \nGeeks@Geeks`\n\nconst checkPass = (pass) =>{\nconst regex = /(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\\[\\]\\(\\)?$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*/gm;\n return regex.test(pass)\n}\nconsole.log(checkPass(goodPass)) //Output -> true\nconsole.log(checkPass(badPass)) //Output -> false\n```\n\nPython\n\n```python\ngoodPass = \"%G[e](e)?k@1&3$\"\nbadPass = (\"geek@123\\n\" \n\"GEEK@123\\n\"\n\"Geeks123\\n\"\n\"Geeks@Geeks\")\nregex = r\"(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\\\"$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*\"\ndef checkPassword(term, text):\n match = bool(re.search(term, text, re.MULTILINE))\n return match\n\nprint(checkPassword(regex, goodPass)) #Output -> True\nprint(checkPassword(regex, badPass)) #Output -> False\n```\n\nIn both cases, we are returning `True/False` if the password provided matches the requirements.\n\n### RegEx for URLs\n\nJavascript\n\n```javascript\n// Check url\nconst checkUrl = (url) =>{\n\tconst regex = /^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$/gm;\n \treturn regex.test(url)\n\t}\n\nconsole.log(checkUrl(\"www.4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"http://www.google.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks\")) //Output -> false\n```\n\nPython\n\n```python\n#check url\ndef checkUrl(url):\n regex = r\"^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$\"\n match= bool(re.search(regex, url))\n return match\n\nprint(checkUrl(\"www.4geeks.com\")) #Output -> True\nprint(checkUrl(\"4geeks.com\")) #Output -> True\nprint(checkUrl(\"http://www.google.com\")) #Output -> True\nprint(checkUrl(\"4geeks\")) #Output -> False\n```\n\nIn both cases we are returning a boolean (`true/false`) if the URL is valid.\n\nYou can learn more about this topic and others related at [4Geeks](https://4geeks.com/). Hope you enjoyed the reading and keep on the Geek side!","image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","_slug":"regex-examples","locale":"en","_locale":"en","_updated_at":"2025-07-16T20:02:03.222Z","_image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e"},"param":{"slug":"regex-examples","locale":"en"},"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}},{"queryKey":["/api/variables"],"data":{"global.campus_phone":{"default":"+1 (786) 416-6640","conditions":[{"query":{"location":"santiago-de-chile"},"value":"+56 9 5765 3466"},{"query":{"location":"madrid-spain"},"value":"+34 910 86 69 83"},{"query":{"location":"caracas"},"value":"+58 212-555-0100"}]},"global.sample_greeting":{"default":"Welcome to 4Geeks Academy","conditions":[{"query":{"location":"downtown-miami"},"value":"Welcome to 4Geeks Miami"},{"query":{"location":"santiago-de-chile"},"value":"Bienvenido a 4Geeks Santiago"},{"query":{"location":"madrid-spain"},"value":"Bienvenido a 4Geeks Madrid"},{"query":{"region":"latam"},"value":"Bienvenido a 4Geeks Academy"},{"query":{"region":"europe"},"value":"Welcome to 4Geeks Academy"},{"query":{"locale":"es"},"value":"Bienvenido a 4Geeks Academy"}]},"global.workflowlele":{"default":"workflows"},"global.global_job_placement_rate":{"default":"84","conditions":[{"query":{"region":"usa-canada"},"value":"84"},{"query":{"region":"europe"},"value":"75"},{"query":{"region":"latam"},"value":"81"}]},"global.global_salary_increase":{"default":"55","conditions":[{"query":{"region":"usa-canada"},"value":"55"},{"query":{"region":"europe"},"value":"30"},{"query":{"region":"latam"},"value":"40"}]},"global.global_review_rating":{"default":"4.9"},"global.global_review_count":{"default":"700+","conditions":[{"query":{"locale":"es"},"value":"700+"},{"query":{"locale":"en"},"value":"700+"}]},"global.global_teacher_student_ratio":{"default":"1:7","conditions":[{"query":{"region":"europe"},"value":"1:8"}]},"global.call_to_action_apply":{"default":"Apply now","conditions":[{"query":{"location":"santiago-chile"},"value":"Postular Ahora"},{"query":{"location":"madrid-spain"},"value":"Aplicar Ahora"},{"query":{"region":"latam"},"value":"Aplicar Ahora"}]},"global.price_full_datascience":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"3250 USD"}]},"global.price_ai_engineering":{"default":"$399","conditions":[{"query":{"region":"usa-canada"},"value":"$399"},{"query":{"region":"europe"},"value":"140€"},{"query":{"region":"latam"},"value":"459 USD"}]},"global.price_full_ai_engineering":{"default":"$14,999","conditions":[{"query":{"region":"usa-canada"},"value":"$14,999"},{"query":{"region":"europe"},"value":"9.800 €"},{"query":{"region":"latam"},"value":"3500 USD"}]},"global.price_cybersecurity":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_cybersecurity":{"default":"$9,999","conditions":[{"query":{"region":"usa-canada"},"value":"$9,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"2500 USD"}]},"global.price_fullstack":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_fullstack":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"latam"},"value":"2500 USD"},{"query":{"region":"europe"},"value":"6.800 €"}]},"global.price_datascience":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.global_total_alumni":{"default":"4,000","conditions":[{"query":{"locale":"en"},"value":"6,000"},{"query":{"locale":"es"},"value":"6.000"}]},"global.global_salary_cybersecurity_analist":{"default":"$75K–$120K","conditions":[{"query":{"region":"usa-canada"},"value":"$75K–$120K"},{"query":{"region":"europe"},"value":"20.000€ - 25.000€"},{"query":{"region":"latam"},"value":"$30K – $55K"}]},"global.global_salary_penetration_tester":{"default":"$90K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K–$150K"},{"query":{"region":"europe"},"value":"18.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.global_salary_security_engineer":{"default":"$100K–$165K","conditions":[{"query":{"region":"usa-canada"},"value":"$100K–$165K"},{"query":{"region":"europe"},"value":"22.000€- 30.000€"},{"query":{"region":"latam"},"value":"$45K – $75K"}]},"global.global_salary_incident_responder":{"default":"$85K–$140K","conditions":[{"query":{"region":"usa-canada"},"value":"$85K–$140K"},{"query":{"region":"europe"},"value":"25.000€ - 32.000€"},{"query":{"region":"latam"},"value":"$40K – $70K"}]},"global.average_salary_cybersecurity_short":{"default":"$85K","conditions":[{"query":{"region":"europe"},"value":"35.000€"},{"query":{"region":"latam"},"value":"35K USD"}]},"global.salary_data_scientist":{"default":"$80K–$130K","conditions":[{"query":{"region":"usa-canada"},"value":"$80K–$130K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.minimun_isa_salary":{"default":"17.000 €","conditions":[{"query":{"region":"europe"},"value":"17.000 €"}]},"global.average_salary_fullstack":{"default":"$75K–$110K","conditions":[{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$45K – $70K"}]},"global.mounthly_price_bootcamp":{"default":"200 €","conditions":[{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"170 USD"}]},"global.average_salary_machine_learning_engineer":{"default":"$90K–$150K","conditions":[{"query":{"region":"europe"},"value":"22.000 € - 30.000 €"},{"query":{"region":"latam"},"value":"$45K – $80K"}]},"global.average_salary_ai_fluent_software_developer":{"default":"$90 K–$140 K","conditions":[{"query":{"region":"usa-canada"},"value":"$90 K–$140 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$55K – $75K"}]},"global.average_salary_web_aplications_engineer":{"default":"$95K–$140K","conditions":[{"query":{"region":"latam"},"value":"$40K – $65K"},{"query":{"region":"latam"},"value":"$40K – $65K"}]},"global.average_salary_backend_services_developer":{"default":"$100K–$150K","conditions":[{"query":{"region":"latam"},"value":"$50K – $75K"}]},"global.average_salary_data_analyst":{"default":"$60K–$95K","conditions":[{"query":{"region":"usa-canada"},"value":"$60K–$95K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$20K – $40K"}]},"global.average_salary_ai_engineer":{"default":"$95K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$95K–$150K"},{"query":{"region":"latam"},"value":"$40K – $75K"},{"query":{"region":"europe","locale":"es"},"value":"25.000€ - 60.000€"},{"query":{"region":"europe","locale":"en"},"value":"25,000€ - 60,000€"}]},"global.average_salary_ai_specialist":{"default":"$95K–$145K","conditions":[{"query":{"region":"europe"},"value":" 40.000 € - 60.000 €"},{"query":{"region":"latam"},"value":"$25K–$60K USD"}]},"global.average_salary_ai_automation":{"default":"$140K–$210K\"","conditions":[{"query":{"region":"europe"},"value":"30.000 € - 45.000 €"},{"query":{"region":"latam"},"value":"$25K–$40K"}]},"global.monthly_full_stack":{"conditions":[{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.monthly_ai_eng":{"conditions":[{"query":{"region":"latam"},"value":"227 USD"},{"query":{"region":"europe"},"value":"140 €"}]},"global.monthly_cyber":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.global_verified_reviews_count":{"default":"1,000","conditions":[{"query":{"locale":"en"},"value":"700"},{"query":{"locale":"es"},"value":"700"}]},"global.starting_salary_datascience":{"default":"$90K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K"}]},"global.global_spending_cybersecurity":{"default":"$520B USD","conditions":[{"query":{"region":"usa-canada"},"value":"$520B"},{"query":{"region":"europe"},"value":"442.000 M€"}]},"global.lowest_monthly_financing_option":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"}]},"global.anual_income_based_payment_guarantee":{"default":"$35,000","conditions":[{"query":{"locale":"en","region":"usa-canada"},"value":"$35,000"},{"query":{"region":"usa-canada","locale":"es"},"value":"$35.000"}]},"global.job_guarantee_price":{"default":"$2,000","conditions":[{"query":{"region":"usa-canada"},"value":"$2,000"}]},"global.monthly_payment_minimun":{"default":"$349","conditions":[{"query":{"region":"usa-canada"},"value":"$349"}]},"global.global_campuses":{"default":"10","conditions":[{"query":{"region":"usa-canada"},"value":"10"}]},"global.average_salary_agent_engineer":{"default":"$75 K–$115 K","conditions":[{"query":{"region":"usa-canada"},"value":"$75 K–$115 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"}]},"global.average_salary_workflow_automation_engineer":{"default":"$25K–$40K","conditions":[{"query":{"region":"usa-canada"},"value":"$70 K–$110 K"},{"query":{"region":"europe"},"value":"20.000€- 30.000€"}]},"global.data_science_week_duration":{"default":"18","conditions":[{"query":{"region":"europe"},"value":"18 "},{"query":{"region":"latam"},"value":"18"},{"query":{"region":"usa-canada"},"value":"18"}]},"global.ai_engineering_week_duration":{"default":"24 "},"global.cybersecurity_week_duration":{"default":"16 "},"global.fullstack_week_duration":{"default":"20 "},"global.total_scholarships":{"default":"20$M","conditions":[{"query":{"region":"europe"},"value":"17M€"}]},"global.number_of_hiring_partners_aprox":{"default":"400"},"global.who_is_eligible_work_authorization":{"conditions":[{"query":{"region":"latam"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"europe"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"usa-canada"},"value":"Have U.S. work authorization"}],"default":"Have authorization to work in your country of residence"},"global.address_miami":{"default":"1111 Brickell Ave, Miami, FL 33129"},"reserved.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"reserved.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"reserved.consent_whatsapp":{"default":"","isReserved":true},"reserved.consent_sms":{"default":"","isReserved":true},"reserved.consent_email":{"default":"","isReserved":true},"reserved.consent_general":{"default":"","isReserved":true},"global.ai_fluency_price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.ai.fluency.price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.full_tuition_ai_engineering":{"default":"","conditions":[{"query":{"region":"usa-canada"},"value":"Standard tuition is $15,999."}]},"global.ai_flex_path_1_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"}]},"global.ai_flex_path_2_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"}]},"global.ai_flex_path_3_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"}]},"global.ai_flex_path_4_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"}]},"global.ai_fluency_url":{"default":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-ue&cohort=1706"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-fluency-ue&cohort=1706"}]},"global.price_ai_fluency_financing":{"default":"$75"},"global.ai_engineering_program_tracks":{"default":"22 Weeks ","conditions":[{"query":{"region":"usa-canada"},"value":"22 Weeks or 17-Week Accelerated Morning Track"}]},"brand.title":{"default":"4Geeks Academy","isReserved":true},"brand.logo":{"default":"4geeks-devs-logo-1763162063433","isReserved":true},"brand.logo_dark":{"default":"logo-4geeks-white","isReserved":true},"global.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"global.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"global.consent_whatsapp":{"default":"","isReserved":true},"global.consent_sms":{"default":"","isReserved":true},"global.consent_email":{"default":"","isReserved":true},"global.consent_general":{"default":"","isReserved":true}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/content-types"],"data":[{"name":"program","label":"Program","directory":"programs","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","bc_slug","job_role"],"field_mapping_keys":["slug","title","bc_slug","job_role","valid_lead_form_option"],"url_pattern":{"en":"/en/career-programs/:slug","es":"/es/programas-de-carrera/:slug"},"locale_key":null,"static_entry_count":9,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"location","label":"Location","directory":"locations","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","name","latitude","longitude","city"],"field_mapping_keys":["slug","name","city","country","country_code","region","default_language","phone","address","latitude","longitude","timezone","available_programs"],"url_pattern":{"en":"/en/location/:slug","es":"/es/ubicacion/:slug"},"locale_key":null,"static_entry_count":36,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"landing","label":"Landing","directory":"landings","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title","locale"],"url_pattern":{"default":"/landing/:slug"},"locale_key":null,"static_entry_count":32,"database_entry_count":null,"layout":{"menu":{"top":"logo-only","bottom":null}}},{"name":"page","label":"Page","directory":"pages","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title"],"url_pattern":{"en":"/en/:slug","es":"/es/:slug"},"locale_key":null,"static_entry_count":49,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"blog","label":"Blog","directory":"blog","has_database":false,"database_slug":null,"single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","status","category","tags","lang","content","downloadable"],"url_pattern":{"en":"/en/blog/:category/:slug","es":"/es/blog/:category/:slug"},"locale_key":"locale","static_entry_count":227,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"downloadable","label":"Downloadable","directory":"downloadable","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","pdf_url"],"url_pattern":{"en":"/en/downloadable/:slug","es":"/es/descargable/:slug"},"locale_key":"locale","static_entry_count":4,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"outcome-report","label":"Outcome-report","directory":"outcome-report","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":false,"unique_fields":["slug"],"field_mapping_keys":[],"url_pattern":{"en":"/en/outcomes-report/:slug","es":"/es/informe-de-resultados/:slug"},"locale_key":null,"static_entry_count":1,"database_entry_count":null,"layout":{"menu":{"top":null,"bottom":null}}},{"name":"how-to","label":"How-to","directory":"how-to","has_database":true,"database_slug":"how_to","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","slug","description","image","content","updated_at","technologies"],"url_pattern":{"en":"/en/how-to/:slug","es":"/es/how-to/:slug"},"locale_key":"language","static_entry_count":11,"database_entry_count":114,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"interactive-exercise","label":"Interactive-exercise","directory":"interactive-exercise","has_database":true,"database_slug":"interactive-exercises","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","category","tags","content","category_name","learnpack_url","interactive","video","difficulty","duration","manifest","language"],"url_pattern":{"en":"/en/interactive-exercise/:slug","es":"/es/interactive-exercise/:slug"},"locale_key":"language","static_entry_count":0,"database_entry_count":72,"layout":{"menu":{"top":"main-navbar","bottom":null}}},{"name":"lesson","label":"Lesson","directory":"lesson","has_database":true,"database_slug":"lesson","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","category","tags","content","is_featured"],"url_pattern":{"en":"/en/lesson/:slug","es":"/es/lesson/:slug"},"locale_key":"language","static_entry_count":1,"database_entry_count":0,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}]},{"queryKey":["/api/image-registry"],"data":{"presets":{"hero-wide":{"aspect_ratio":"16:9","widths":[320,480,640,720,960,1280,1920],"quality":85,"description":"Full-width hero images"},"hero-tall":{"aspect_ratio":"9:16","widths":[360,480,640],"quality":85,"description":"Vertical hero images for mobile-style content"},"card":{"aspect_ratio":"4:3","widths":[320,480,640],"quality":80,"description":"Standard card thumbnails"},"card-wide":{"aspect_ratio":"16:9","widths":[320,480,640],"quality":80,"description":"Wide card thumbnails"},"avatar":{"aspect_ratio":"1:1","widths":[32,64,128,256],"quality":85,"description":"Profile pictures and avatars"},"logo":{"aspect_ratio":null,"widths":[32,64,120,240],"quality":90,"description":"Company logos, preserves original aspect ratio"},"icon":{"aspect_ratio":"1:1","widths":[32,64,128],"quality":90,"description":"Small icons and badges"},"full":{"aspect_ratio":null,"widths":[640,960,1280,1920],"quality":85,"description":"Full-size images, preserves original aspect ratio"}},"images":{"4geeks-devs-logo-1763162063433":{"src":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433.png","alt":"Image: 4geeks-devs-logo_1763162063433","focal_point":"center","tags":["logo"],"usage_count":0,"hash":"25422248ede1db8734e27ad0c5d3d67b6e7df20a60911995b5de0d50e6048ec9","width":359,"height":82,"preset":["logo"],"widths_generated":[32,64,120,240],"format":"webp","srcset":[{"w":32,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-32w.webp"},{"w":64,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-64w.webp"},{"w":120,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-120w.webp"},{"w":240,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-240w.webp"}]}},"tagDefinitions":{"hero":{"label":"Hero","description":"Full-width hero or banner images used in page headers","presets":["hero-wide","hero-tall"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["hero.image","hero.background_image","hero.media.src"],"component_keys":["hero","hero_showcase","hero_singleColumn","hero_twoColumn","hero_productShowcase"],"filename_patterns":["hero","banner","header-bg"],"aspect_ratio_range":{"min":1.5,"max":3}}},"logo":{"label":"Logo","description":"Company or partner logos, typically wide and short","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["logo","partner_logo","brand_logo"],"component_keys":["partners","trust_badges"],"filename_patterns":["logo","brand","company"],"aspect_ratio_range":{"min":1,"max":6}}},"avatar":{"label":"Avatar","description":"Profile pictures, headshots, or user avatars","presets":["avatar"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["avatar","profile_image","headshot","testimonial.image"],"component_keys":["testimonials","team","staff"],"filename_patterns":["avatar","headshot","profile","portrait"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"card":{"label":"Card","description":"Thumbnails used in card layouts and grids","presets":["card","card-wide"],"srcset_widths":[320,480,640],"detection":{"yaml_fields":["card.image","thumbnail"],"component_keys":["cards","grid","features"],"filename_patterns":["card","thumb","thumbnail"],"aspect_ratio_range":{"min":0.75,"max":2}}},"icon":{"label":"Icon","description":"Small icons, badges, or UI elements","presets":["icon"],"srcset_widths":[32,64,128],"detection":{"yaml_fields":["icon","badge_icon"],"component_keys":["icons","features"],"filename_patterns":["icon","ico","symbol"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"photo":{"label":"Photo","description":"General photographs of people, places, or events","presets":["full","card"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["image","photo"],"component_keys":["gallery","about"],"filename_patterns":["photo","campus","classroom","event"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"badge":{"label":"Badge","description":"Award badges, certification marks, or trust seals","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["badge","certification","seal"],"component_keys":["badges","awards","certifications"],"filename_patterns":["badge","seal","certification","cert"],"aspect_ratio_range":{"min":0.6,"max":1.6}}},"partner":{"label":"Partner","description":"Partner organization logos and images","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["partner.logo","partner_image"],"component_keys":["partners","collaborators"],"filename_patterns":["partner","sponsor","university","college"],"aspect_ratio_range":{"min":1,"max":5}}},"press":{"label":"Press","description":"Press and media mentions, publication logos","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["press_logo","publication"],"component_keys":["press","media_mentions"],"filename_patterns":["press","media","news","forbes","newsweek","fortune"],"aspect_ratio_range":{"min":1,"max":5}}},"illustration":{"label":"Illustration","description":"Illustrations, diagrams, or infographics","presets":["full","card"],"srcset_widths":[320,640,960],"detection":{"yaml_fields":["illustration","diagram"],"component_keys":["features","how_it_works"],"filename_patterns":["illustration","diagram","infographic","graphic"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"testimonial":{"label":"Testimonial","description":"Images associated with student or alumni testimonials","presets":["avatar","card"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["testimonial.image","review.image"],"component_keys":["testimonials","reviews","success_stories"],"filename_patterns":["testimonial","review","success"],"aspect_ratio_range":{"min":0.8,"max":1.5}}},"team":{"label":"Team","description":"Staff, instructor, or team member photos","presets":["avatar","card"],"srcset_widths":[128,256,480],"detection":{"yaml_fields":["staff.image","instructor.image","team.image"],"component_keys":["team","staff","instructors"],"filename_patterns":["team","staff","instructor","teacher","mentor"],"aspect_ratio_range":{"min":0.7,"max":1.5}}},"award":{"label":"Award","description":"Award images, accolades, or recognition marks","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["award","accolade"],"component_keys":["awards","recognition"],"filename_patterns":["award","accolade","recognition","prize","course-report","switchup"],"aspect_ratio_range":{"min":0.6,"max":1.6}}}}}},{"queryKey":["navigation-eager-manifest"],"data":{"version":1,"generatedAt":"2026-08-06T05:37:07.633Z","defaultEagerCount":3,"paths":{"/":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/apply":{"eager":[["hero","singleColumn"],["apply_form","default"],["breadcrumb","default"]],"leadForm":true},"/en/awards":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/en/blog":{"eager":[["list_cards","default"]]},"/en/career-programs/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/en/career-programs/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/en/career-programs/cybersecurity":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/data-science-ml":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/full-stack":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/contact-us":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/en/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/en/financials":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/en/geekforce-career-support":{"eager":[["hero","productShowcase"],["graduates_stats","default"],["career_support_explain","default"]]},"/en/geekpal-support":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/en/geeks-vs-others":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/en/graduates-and-projects":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/en/home":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/job-guarantee":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["graduates_stats","fullBleed"]]},"/en/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/location/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/barcelona-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/berlin-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dublin-ireland":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/hamburg-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lisbon-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/malaga-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/mexicocity-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/milan-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/munich-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/newyork-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/panamacity-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/remote":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rest-of-europe":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rome-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/valencia-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/online-platform":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/outcomes":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/en/partners":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/en/payment-component":{"eager":[["enrollment_selector","default"]]},"/en/press":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/en/privacy-policy":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/program-comparison":{"eager":[["hero","orbit"],["comparison_table","default"]]},"/en/rigobot-ai-coding-mentor":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/scholarships":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/en/terms-conditions":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/testimonials":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/en/the-academy":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/en/upcoming-dates":{"eager":[["dynamic_table","comparison"],["cta_banner","form"],["sticky_cta","default"]],"leadForm":true},"/en/work-with-us":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/alianzas":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/es/apply":{"eager":[["hero","singleColumn"],["apply_form","default"]],"leadForm":true},"/es/becas":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/es/blog":{"eager":[["list_cards","default"]]},"/es/contactanos":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/es/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/egresados-y-proyectos":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/es/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/es/financiaciones":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/es/geeks-vs-otros":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/es/inicio":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/payment-component":{"eager":[["enrollment_selector","default"]]},"/es/plataforma-online":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/premios":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/es/prensa":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/es/programas-de-carrera/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/programas-de-carrera/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/es/programas-de-carrera/ciberseguridad":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ciencia-de-datos-ml":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/desarrollo-full-stack":{"eager":[["breadcrumb","default"],["hero","course"]]},"/es/programas-de-carrera/ingenieria-ia":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/proximas-fechas":{"eager":[["dynamic_table","comparison"],["sticky_cta","default"]],"leadForm":true},"/es/resultados":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/es/rigobot":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/sobre-la-academia":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/es/soporte-geekpal":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/es/soporte-profesional-geekforce":{"eager":[["hero","productShowcase"],["career_support_explain","default"],["graduates_stats","default"]]},"/es/terminos-y-condiciones":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/testimonios":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/es/trabaja-con-nosotros":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es/trabajo-garantizado":{"eager":[["hero","simpleTwoColumn"],["graduates_stats","fullBleed"],["course_selector","solid"]]},"/es/ubicacion/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/barcelona-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/berlin-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dublin-irlanda":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/hamburgo-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lisboa-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/malaga-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/milan-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/munich-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/nueva-york-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/remoto":{"eager":[["hero","singleColumn"],["banner","default"],["two_column","default"]]},"/es/ubicacion/resto-de-europa":{"eager":[["hero","singleColumn"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/ubicacion/roma-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/valencia-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]}}}}],"locale":"en"} RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> badPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> `\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">geek@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">GEEK@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks@Geeks`\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">pass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /(?=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)((?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[A-Z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[a-z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[0-9]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[|!@\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\[\\]\\(\\)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">?$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(pass)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">goodPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> \"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">%G\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">[e](e)?k@1&3$\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">badPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"geek@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"GEEK@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks@Geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">A-Z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">a-z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">0-9\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">|!\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPassword\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(term, text):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(term, text, re.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">MULTILINE\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases, we are returning \u003ccode>True/False\u003c/code> if the password provided matches the requirements.\u003c/p>\n\u003ch3 id=\"regex-for-urls\">RegEx for URLs\u003c/h3>\n\u003cp>Javascript\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">// Check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">url\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">\tconst\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(((https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp):\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> \treturn\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">\t}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^(((\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">:\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)([\\w])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(regex, url))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases we are returning a boolean (\u003ccode>true/false\u003c/code>) if the URL is valid.\u003c/p>\n\u003cp>You can learn more about this topic and others related at \u003ca href=\"https://4geeks.com/\">4Geeks\u003c/a>. Hope you enjoyed the reading and keep on the Geek side!\u003c/p>","section_id":"article-gnx7dr","paddingY":{"desktop":"sm"},"maxWidth":{"desktop":"xl"},"_variableFields":{"content":"{{ single.content | how to content }}"},"_variableKeys":{"content":"content"},"_imageSizes":{}}],"singleEntry":{"id":821,"slug":"regex-examples","title":"RegEx Examples: Mastering Regular Expressions with Practical Cases","description":"On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction","language":"en","translations":{"us":"regex-examples"},"updated_at":"2025-07-16T20:02:03.222Z","image_url":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","technologies":["javascript","python","regular-expression","snippet"],"content":"Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including [Javascript](https://4geeks.com/lesson/what-is-javascript-learn-to-code-in-javascript), Python, and Ruby. For those looking to learn more about regex, a [regex tutorial](https://4geeks.com/lesson/regex-tutorial-regular-expression-examples) is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.\n\n## What are Regular Expressions (RegEx) patterns?\n\nA RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.\n\nCreating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.\n\n### RegEx for emails\n\nEmails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.\n\n### RegEx email inside text\n\nJavascript\n```javascript\n// We receive a text like this, and we want to extract the email address\nconst text = `My name is Geek and my email address is geek@4geeksacademy.com`;\n\nconst findEmail = (str) =>{\n const regex = /\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b/mg;\n return str.match(regex)\n}\n\nconsole.log(findEmail(text))\n//Output -> [geek@4geeksacademy.com]\n```\n\nPython\n```python\ndataset = \"My name is Geek and my mail address is geek@4geeksacademy.com\";\nregex = r\"\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b\"\n\ndef findEmail(term, text):\n match = re.search(term, text)\n return match\n\nprint(findEmail(regex, dataset))\n#Output -> \u003cre.Match object; span=(39, 61), match='geek@4geeksacademy.com'>\n```\n\n### RegEx email \n\nJavascript\n```javascript\n// Check valid email\nconst text = `geek@4geeksacademy.com`;\n\nconst validEmail = (str) =>{\n const regex = new RegExp(\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\")\n return regex.test(str)\n}\n//Output: true\n```\nSince we are checking if the email address has the correct pattern, we are using the `test` method to receive a `true/false` response.\n\nPython\n```python\n#Check valid email\ndataset = \"geek@4geeksacademy.com\"\nregex = r\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\"\ndef validEmail(term, text):\n match = bool(re.search(term, text))\n return match\n\nprint(validEmail(regex, dataset))\n#Output -> True\n```\n\nSince we are checking if the email address has the correct pattern, we are using the `bool` to receive a `true/false` response.\n\n## Numbers **without** decimals (Int)\n\nJavascript\n```javascript\n//Check integer\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkInt = (str) =>{\n const regex = /^(\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkInt(text))\n//Output -> [15]\n```\n\nPython\n\n```python\n#Check integer\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregex = r\"^(\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regex, number))\n#output -> \u003cre.Match object; span=(0, 2), match='15'>\n```\n\n## RegEx decimal numbers (float)\n\nJavascript\n\n```javascript\n#Check float\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkFloat = (str) =>{\n const regex = /^(\\d*)[.,](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkFloat(text))\n//Output -> [ '12.3', '56,7' ]\n```\n\nPython\n\n```python\n#Check Float\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregexFloat = r\"^(\\d*)[.,](\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.findall(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regexFloat, number))\n#output -> [('12', '3'), ('56', '7')]\n```\nWe are using the `findall()` method because we have more than one in our dataset, if you would only want one result, use the `search()` method instead. The output would be `\u003cre.Match object; span=(3, 7), match='12.3'>`\n\n\n### Regex for decimals \n\nJavascript\n\n```javascript\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkDecimals = (str) =>{\n const regex = /^(\\d+)[\\/](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkDecimals(text))\n//Output -> [ '12/4' ]\n```\nPython\n\n```python\n#Check decimals\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\n\nregexDecimals = r\"^(\\d+)[\\/](\\d+)$\"\ndef checkDecimals(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkDecimals(regexDecimals, number))\n#Output -> \u003cre.Match object; span=(13, 17), match='12/4'>\n```\n\n### RegEx for strong password validation\n\nA strong password consists on a minimum length of 6 characters and at least: \n- 1 uppercase\n- 1 lowercase\n- 1 number\n- 1 special character\n\nJavascript\n```javascript\n#Check password\nconst goodPass = `%G[e](e)?k@1&3 RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\nconst badPass = `\ngeek@123 \nGEEK@123 \nGeeks123 \nGeeks@Geeks`\n\nconst checkPass = (pass) =>{\nconst regex = /(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\\[\\]\\(\\)?$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*/gm;\n return regex.test(pass)\n}\nconsole.log(checkPass(goodPass)) //Output -> true\nconsole.log(checkPass(badPass)) //Output -> false\n```\n\nPython\n\n```python\ngoodPass = \"%G[e](e)?k@1&3$\"\nbadPass = (\"geek@123\\n\" \n\"GEEK@123\\n\"\n\"Geeks123\\n\"\n\"Geeks@Geeks\")\nregex = r\"(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\\\"$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*\"\ndef checkPassword(term, text):\n match = bool(re.search(term, text, re.MULTILINE))\n return match\n\nprint(checkPassword(regex, goodPass)) #Output -> True\nprint(checkPassword(regex, badPass)) #Output -> False\n```\n\nIn both cases, we are returning `True/False` if the password provided matches the requirements.\n\n### RegEx for URLs\n\nJavascript\n\n```javascript\n// Check url\nconst checkUrl = (url) =>{\n\tconst regex = /^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$/gm;\n \treturn regex.test(url)\n\t}\n\nconsole.log(checkUrl(\"www.4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"http://www.google.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks\")) //Output -> false\n```\n\nPython\n\n```python\n#check url\ndef checkUrl(url):\n regex = r\"^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$\"\n match= bool(re.search(regex, url))\n return match\n\nprint(checkUrl(\"www.4geeks.com\")) #Output -> True\nprint(checkUrl(\"4geeks.com\")) #Output -> True\nprint(checkUrl(\"http://www.google.com\")) #Output -> True\nprint(checkUrl(\"4geeks\")) #Output -> False\n```\n\nIn both cases we are returning a boolean (`true/false`) if the URL is valid.\n\nYou can learn more about this topic and others related at [4Geeks](https://4geeks.com/). Hope you enjoyed the reading and keep on the Geek side!","image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","_slug":"regex-examples","locale":"en","_locale":"en","_updated_at":"2025-07-16T20:02:03.222Z","_image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e"},"param":{"slug":"regex-examples","locale":"en"},"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}},{"queryKey":["/api/variables"],"data":{"global.campus_phone":{"default":"+1 (786) 416-6640","conditions":[{"query":{"location":"santiago-de-chile"},"value":"+56 9 5765 3466"},{"query":{"location":"madrid-spain"},"value":"+34 910 86 69 83"},{"query":{"location":"caracas"},"value":"+58 212-555-0100"}]},"global.sample_greeting":{"default":"Welcome to 4Geeks Academy","conditions":[{"query":{"location":"downtown-miami"},"value":"Welcome to 4Geeks Miami"},{"query":{"location":"santiago-de-chile"},"value":"Bienvenido a 4Geeks Santiago"},{"query":{"location":"madrid-spain"},"value":"Bienvenido a 4Geeks Madrid"},{"query":{"region":"latam"},"value":"Bienvenido a 4Geeks Academy"},{"query":{"region":"europe"},"value":"Welcome to 4Geeks Academy"},{"query":{"locale":"es"},"value":"Bienvenido a 4Geeks Academy"}]},"global.workflowlele":{"default":"workflows"},"global.global_job_placement_rate":{"default":"84","conditions":[{"query":{"region":"usa-canada"},"value":"84"},{"query":{"region":"europe"},"value":"75"},{"query":{"region":"latam"},"value":"81"}]},"global.global_salary_increase":{"default":"55","conditions":[{"query":{"region":"usa-canada"},"value":"55"},{"query":{"region":"europe"},"value":"30"},{"query":{"region":"latam"},"value":"40"}]},"global.global_review_rating":{"default":"4.9"},"global.global_review_count":{"default":"700+","conditions":[{"query":{"locale":"es"},"value":"700+"},{"query":{"locale":"en"},"value":"700+"}]},"global.global_teacher_student_ratio":{"default":"1:7","conditions":[{"query":{"region":"europe"},"value":"1:8"}]},"global.call_to_action_apply":{"default":"Apply now","conditions":[{"query":{"location":"santiago-chile"},"value":"Postular Ahora"},{"query":{"location":"madrid-spain"},"value":"Aplicar Ahora"},{"query":{"region":"latam"},"value":"Aplicar Ahora"}]},"global.price_full_datascience":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"3250 USD"}]},"global.price_ai_engineering":{"default":"$399","conditions":[{"query":{"region":"usa-canada"},"value":"$399"},{"query":{"region":"europe"},"value":"140€"},{"query":{"region":"latam"},"value":"459 USD"}]},"global.price_full_ai_engineering":{"default":"$14,999","conditions":[{"query":{"region":"usa-canada"},"value":"$14,999"},{"query":{"region":"europe"},"value":"9.800 €"},{"query":{"region":"latam"},"value":"3500 USD"}]},"global.price_cybersecurity":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_cybersecurity":{"default":"$9,999","conditions":[{"query":{"region":"usa-canada"},"value":"$9,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"2500 USD"}]},"global.price_fullstack":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_fullstack":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"latam"},"value":"2500 USD"},{"query":{"region":"europe"},"value":"6.800 €"}]},"global.price_datascience":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.global_total_alumni":{"default":"4,000","conditions":[{"query":{"locale":"en"},"value":"6,000"},{"query":{"locale":"es"},"value":"6.000"}]},"global.global_salary_cybersecurity_analist":{"default":"$75K–$120K","conditions":[{"query":{"region":"usa-canada"},"value":"$75K–$120K"},{"query":{"region":"europe"},"value":"20.000€ - 25.000€"},{"query":{"region":"latam"},"value":"$30K – $55K"}]},"global.global_salary_penetration_tester":{"default":"$90K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K–$150K"},{"query":{"region":"europe"},"value":"18.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.global_salary_security_engineer":{"default":"$100K–$165K","conditions":[{"query":{"region":"usa-canada"},"value":"$100K–$165K"},{"query":{"region":"europe"},"value":"22.000€- 30.000€"},{"query":{"region":"latam"},"value":"$45K – $75K"}]},"global.global_salary_incident_responder":{"default":"$85K–$140K","conditions":[{"query":{"region":"usa-canada"},"value":"$85K–$140K"},{"query":{"region":"europe"},"value":"25.000€ - 32.000€"},{"query":{"region":"latam"},"value":"$40K – $70K"}]},"global.average_salary_cybersecurity_short":{"default":"$85K","conditions":[{"query":{"region":"europe"},"value":"35.000€"},{"query":{"region":"latam"},"value":"35K USD"}]},"global.salary_data_scientist":{"default":"$80K–$130K","conditions":[{"query":{"region":"usa-canada"},"value":"$80K–$130K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.minimun_isa_salary":{"default":"17.000 €","conditions":[{"query":{"region":"europe"},"value":"17.000 €"}]},"global.average_salary_fullstack":{"default":"$75K–$110K","conditions":[{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$45K – $70K"}]},"global.mounthly_price_bootcamp":{"default":"200 €","conditions":[{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"170 USD"}]},"global.average_salary_machine_learning_engineer":{"default":"$90K–$150K","conditions":[{"query":{"region":"europe"},"value":"22.000 € - 30.000 €"},{"query":{"region":"latam"},"value":"$45K – $80K"}]},"global.average_salary_ai_fluent_software_developer":{"default":"$90 K–$140 K","conditions":[{"query":{"region":"usa-canada"},"value":"$90 K–$140 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$55K – $75K"}]},"global.average_salary_web_aplications_engineer":{"default":"$95K–$140K","conditions":[{"query":{"region":"latam"},"value":"$40K – $65K"},{"query":{"region":"latam"},"value":"$40K – $65K"}]},"global.average_salary_backend_services_developer":{"default":"$100K–$150K","conditions":[{"query":{"region":"latam"},"value":"$50K – $75K"}]},"global.average_salary_data_analyst":{"default":"$60K–$95K","conditions":[{"query":{"region":"usa-canada"},"value":"$60K–$95K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$20K – $40K"}]},"global.average_salary_ai_engineer":{"default":"$95K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$95K–$150K"},{"query":{"region":"latam"},"value":"$40K – $75K"},{"query":{"region":"europe","locale":"es"},"value":"25.000€ - 60.000€"},{"query":{"region":"europe","locale":"en"},"value":"25,000€ - 60,000€"}]},"global.average_salary_ai_specialist":{"default":"$95K–$145K","conditions":[{"query":{"region":"europe"},"value":" 40.000 € - 60.000 €"},{"query":{"region":"latam"},"value":"$25K–$60K USD"}]},"global.average_salary_ai_automation":{"default":"$140K–$210K\"","conditions":[{"query":{"region":"europe"},"value":"30.000 € - 45.000 €"},{"query":{"region":"latam"},"value":"$25K–$40K"}]},"global.monthly_full_stack":{"conditions":[{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.monthly_ai_eng":{"conditions":[{"query":{"region":"latam"},"value":"227 USD"},{"query":{"region":"europe"},"value":"140 €"}]},"global.monthly_cyber":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.global_verified_reviews_count":{"default":"1,000","conditions":[{"query":{"locale":"en"},"value":"700"},{"query":{"locale":"es"},"value":"700"}]},"global.starting_salary_datascience":{"default":"$90K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K"}]},"global.global_spending_cybersecurity":{"default":"$520B USD","conditions":[{"query":{"region":"usa-canada"},"value":"$520B"},{"query":{"region":"europe"},"value":"442.000 M€"}]},"global.lowest_monthly_financing_option":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"}]},"global.anual_income_based_payment_guarantee":{"default":"$35,000","conditions":[{"query":{"locale":"en","region":"usa-canada"},"value":"$35,000"},{"query":{"region":"usa-canada","locale":"es"},"value":"$35.000"}]},"global.job_guarantee_price":{"default":"$2,000","conditions":[{"query":{"region":"usa-canada"},"value":"$2,000"}]},"global.monthly_payment_minimun":{"default":"$349","conditions":[{"query":{"region":"usa-canada"},"value":"$349"}]},"global.global_campuses":{"default":"10","conditions":[{"query":{"region":"usa-canada"},"value":"10"}]},"global.average_salary_agent_engineer":{"default":"$75 K–$115 K","conditions":[{"query":{"region":"usa-canada"},"value":"$75 K–$115 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"}]},"global.average_salary_workflow_automation_engineer":{"default":"$25K–$40K","conditions":[{"query":{"region":"usa-canada"},"value":"$70 K–$110 K"},{"query":{"region":"europe"},"value":"20.000€- 30.000€"}]},"global.data_science_week_duration":{"default":"18","conditions":[{"query":{"region":"europe"},"value":"18 "},{"query":{"region":"latam"},"value":"18"},{"query":{"region":"usa-canada"},"value":"18"}]},"global.ai_engineering_week_duration":{"default":"24 "},"global.cybersecurity_week_duration":{"default":"16 "},"global.fullstack_week_duration":{"default":"20 "},"global.total_scholarships":{"default":"20$M","conditions":[{"query":{"region":"europe"},"value":"17M€"}]},"global.number_of_hiring_partners_aprox":{"default":"400"},"global.who_is_eligible_work_authorization":{"conditions":[{"query":{"region":"latam"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"europe"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"usa-canada"},"value":"Have U.S. work authorization"}],"default":"Have authorization to work in your country of residence"},"global.address_miami":{"default":"1111 Brickell Ave, Miami, FL 33129"},"reserved.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"reserved.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"reserved.consent_whatsapp":{"default":"","isReserved":true},"reserved.consent_sms":{"default":"","isReserved":true},"reserved.consent_email":{"default":"","isReserved":true},"reserved.consent_general":{"default":"","isReserved":true},"global.ai_fluency_price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.ai.fluency.price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.full_tuition_ai_engineering":{"default":"","conditions":[{"query":{"region":"usa-canada"},"value":"Standard tuition is $15,999."}]},"global.ai_flex_path_1_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"}]},"global.ai_flex_path_2_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"}]},"global.ai_flex_path_3_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"}]},"global.ai_flex_path_4_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"}]},"global.ai_fluency_url":{"default":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-ue&cohort=1706"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-fluency-ue&cohort=1706"}]},"global.price_ai_fluency_financing":{"default":"$75"},"global.ai_engineering_program_tracks":{"default":"22 Weeks ","conditions":[{"query":{"region":"usa-canada"},"value":"22 Weeks or 17-Week Accelerated Morning Track"}]},"brand.title":{"default":"4Geeks Academy","isReserved":true},"brand.logo":{"default":"4geeks-devs-logo-1763162063433","isReserved":true},"brand.logo_dark":{"default":"logo-4geeks-white","isReserved":true},"global.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"global.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"global.consent_whatsapp":{"default":"","isReserved":true},"global.consent_sms":{"default":"","isReserved":true},"global.consent_email":{"default":"","isReserved":true},"global.consent_general":{"default":"","isReserved":true}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/content-types"],"data":[{"name":"program","label":"Program","directory":"programs","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","bc_slug","job_role"],"field_mapping_keys":["slug","title","bc_slug","job_role","valid_lead_form_option"],"url_pattern":{"en":"/en/career-programs/:slug","es":"/es/programas-de-carrera/:slug"},"locale_key":null,"static_entry_count":9,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"location","label":"Location","directory":"locations","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","name","latitude","longitude","city"],"field_mapping_keys":["slug","name","city","country","country_code","region","default_language","phone","address","latitude","longitude","timezone","available_programs"],"url_pattern":{"en":"/en/location/:slug","es":"/es/ubicacion/:slug"},"locale_key":null,"static_entry_count":36,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"landing","label":"Landing","directory":"landings","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title","locale"],"url_pattern":{"default":"/landing/:slug"},"locale_key":null,"static_entry_count":32,"database_entry_count":null,"layout":{"menu":{"top":"logo-only","bottom":null}}},{"name":"page","label":"Page","directory":"pages","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title"],"url_pattern":{"en":"/en/:slug","es":"/es/:slug"},"locale_key":null,"static_entry_count":49,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"blog","label":"Blog","directory":"blog","has_database":false,"database_slug":null,"single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","status","category","tags","lang","content","downloadable"],"url_pattern":{"en":"/en/blog/:category/:slug","es":"/es/blog/:category/:slug"},"locale_key":"locale","static_entry_count":227,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"downloadable","label":"Downloadable","directory":"downloadable","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","pdf_url"],"url_pattern":{"en":"/en/downloadable/:slug","es":"/es/descargable/:slug"},"locale_key":"locale","static_entry_count":4,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"outcome-report","label":"Outcome-report","directory":"outcome-report","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":false,"unique_fields":["slug"],"field_mapping_keys":[],"url_pattern":{"en":"/en/outcomes-report/:slug","es":"/es/informe-de-resultados/:slug"},"locale_key":null,"static_entry_count":1,"database_entry_count":null,"layout":{"menu":{"top":null,"bottom":null}}},{"name":"how-to","label":"How-to","directory":"how-to","has_database":true,"database_slug":"how_to","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","slug","description","image","content","updated_at","technologies"],"url_pattern":{"en":"/en/how-to/:slug","es":"/es/how-to/:slug"},"locale_key":"language","static_entry_count":11,"database_entry_count":114,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"interactive-exercise","label":"Interactive-exercise","directory":"interactive-exercise","has_database":true,"database_slug":"interactive-exercises","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","category","tags","content","category_name","learnpack_url","interactive","video","difficulty","duration","manifest","language"],"url_pattern":{"en":"/en/interactive-exercise/:slug","es":"/es/interactive-exercise/:slug"},"locale_key":"language","static_entry_count":0,"database_entry_count":72,"layout":{"menu":{"top":"main-navbar","bottom":null}}},{"name":"lesson","label":"Lesson","directory":"lesson","has_database":true,"database_slug":"lesson","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","category","tags","content","is_featured"],"url_pattern":{"en":"/en/lesson/:slug","es":"/es/lesson/:slug"},"locale_key":"language","static_entry_count":1,"database_entry_count":0,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}]},{"queryKey":["/api/image-registry"],"data":{"presets":{"hero-wide":{"aspect_ratio":"16:9","widths":[320,480,640,720,960,1280,1920],"quality":85,"description":"Full-width hero images"},"hero-tall":{"aspect_ratio":"9:16","widths":[360,480,640],"quality":85,"description":"Vertical hero images for mobile-style content"},"card":{"aspect_ratio":"4:3","widths":[320,480,640],"quality":80,"description":"Standard card thumbnails"},"card-wide":{"aspect_ratio":"16:9","widths":[320,480,640],"quality":80,"description":"Wide card thumbnails"},"avatar":{"aspect_ratio":"1:1","widths":[32,64,128,256],"quality":85,"description":"Profile pictures and avatars"},"logo":{"aspect_ratio":null,"widths":[32,64,120,240],"quality":90,"description":"Company logos, preserves original aspect ratio"},"icon":{"aspect_ratio":"1:1","widths":[32,64,128],"quality":90,"description":"Small icons and badges"},"full":{"aspect_ratio":null,"widths":[640,960,1280,1920],"quality":85,"description":"Full-size images, preserves original aspect ratio"}},"images":{"4geeks-devs-logo-1763162063433":{"src":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433.png","alt":"Image: 4geeks-devs-logo_1763162063433","focal_point":"center","tags":["logo"],"usage_count":0,"hash":"25422248ede1db8734e27ad0c5d3d67b6e7df20a60911995b5de0d50e6048ec9","width":359,"height":82,"preset":["logo"],"widths_generated":[32,64,120,240],"format":"webp","srcset":[{"w":32,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-32w.webp"},{"w":64,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-64w.webp"},{"w":120,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-120w.webp"},{"w":240,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-240w.webp"}]}},"tagDefinitions":{"hero":{"label":"Hero","description":"Full-width hero or banner images used in page headers","presets":["hero-wide","hero-tall"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["hero.image","hero.background_image","hero.media.src"],"component_keys":["hero","hero_showcase","hero_singleColumn","hero_twoColumn","hero_productShowcase"],"filename_patterns":["hero","banner","header-bg"],"aspect_ratio_range":{"min":1.5,"max":3}}},"logo":{"label":"Logo","description":"Company or partner logos, typically wide and short","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["logo","partner_logo","brand_logo"],"component_keys":["partners","trust_badges"],"filename_patterns":["logo","brand","company"],"aspect_ratio_range":{"min":1,"max":6}}},"avatar":{"label":"Avatar","description":"Profile pictures, headshots, or user avatars","presets":["avatar"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["avatar","profile_image","headshot","testimonial.image"],"component_keys":["testimonials","team","staff"],"filename_patterns":["avatar","headshot","profile","portrait"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"card":{"label":"Card","description":"Thumbnails used in card layouts and grids","presets":["card","card-wide"],"srcset_widths":[320,480,640],"detection":{"yaml_fields":["card.image","thumbnail"],"component_keys":["cards","grid","features"],"filename_patterns":["card","thumb","thumbnail"],"aspect_ratio_range":{"min":0.75,"max":2}}},"icon":{"label":"Icon","description":"Small icons, badges, or UI elements","presets":["icon"],"srcset_widths":[32,64,128],"detection":{"yaml_fields":["icon","badge_icon"],"component_keys":["icons","features"],"filename_patterns":["icon","ico","symbol"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"photo":{"label":"Photo","description":"General photographs of people, places, or events","presets":["full","card"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["image","photo"],"component_keys":["gallery","about"],"filename_patterns":["photo","campus","classroom","event"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"badge":{"label":"Badge","description":"Award badges, certification marks, or trust seals","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["badge","certification","seal"],"component_keys":["badges","awards","certifications"],"filename_patterns":["badge","seal","certification","cert"],"aspect_ratio_range":{"min":0.6,"max":1.6}}},"partner":{"label":"Partner","description":"Partner organization logos and images","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["partner.logo","partner_image"],"component_keys":["partners","collaborators"],"filename_patterns":["partner","sponsor","university","college"],"aspect_ratio_range":{"min":1,"max":5}}},"press":{"label":"Press","description":"Press and media mentions, publication logos","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["press_logo","publication"],"component_keys":["press","media_mentions"],"filename_patterns":["press","media","news","forbes","newsweek","fortune"],"aspect_ratio_range":{"min":1,"max":5}}},"illustration":{"label":"Illustration","description":"Illustrations, diagrams, or infographics","presets":["full","card"],"srcset_widths":[320,640,960],"detection":{"yaml_fields":["illustration","diagram"],"component_keys":["features","how_it_works"],"filename_patterns":["illustration","diagram","infographic","graphic"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"testimonial":{"label":"Testimonial","description":"Images associated with student or alumni testimonials","presets":["avatar","card"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["testimonial.image","review.image"],"component_keys":["testimonials","reviews","success_stories"],"filename_patterns":["testimonial","review","success"],"aspect_ratio_range":{"min":0.8,"max":1.5}}},"team":{"label":"Team","description":"Staff, instructor, or team member photos","presets":["avatar","card"],"srcset_widths":[128,256,480],"detection":{"yaml_fields":["staff.image","instructor.image","team.image"],"component_keys":["team","staff","instructors"],"filename_patterns":["team","staff","instructor","teacher","mentor"],"aspect_ratio_range":{"min":0.7,"max":1.5}}},"award":{"label":"Award","description":"Award images, accolades, or recognition marks","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["award","accolade"],"component_keys":["awards","recognition"],"filename_patterns":["award","accolade","recognition","prize","course-report","switchup"],"aspect_ratio_range":{"min":0.6,"max":1.6}}}}}},{"queryKey":["navigation-eager-manifest"],"data":{"version":1,"generatedAt":"2026-08-06T05:37:07.633Z","defaultEagerCount":3,"paths":{"/":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/apply":{"eager":[["hero","singleColumn"],["apply_form","default"],["breadcrumb","default"]],"leadForm":true},"/en/awards":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/en/blog":{"eager":[["list_cards","default"]]},"/en/career-programs/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/en/career-programs/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/en/career-programs/cybersecurity":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/data-science-ml":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/full-stack":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/contact-us":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/en/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/en/financials":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/en/geekforce-career-support":{"eager":[["hero","productShowcase"],["graduates_stats","default"],["career_support_explain","default"]]},"/en/geekpal-support":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/en/geeks-vs-others":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/en/graduates-and-projects":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/en/home":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/job-guarantee":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["graduates_stats","fullBleed"]]},"/en/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/location/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/barcelona-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/berlin-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dublin-ireland":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/hamburg-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lisbon-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/malaga-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/mexicocity-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/milan-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/munich-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/newyork-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/panamacity-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/remote":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rest-of-europe":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rome-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/valencia-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/online-platform":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/outcomes":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/en/partners":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/en/payment-component":{"eager":[["enrollment_selector","default"]]},"/en/press":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/en/privacy-policy":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/program-comparison":{"eager":[["hero","orbit"],["comparison_table","default"]]},"/en/rigobot-ai-coding-mentor":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/scholarships":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/en/terms-conditions":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/testimonials":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/en/the-academy":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/en/upcoming-dates":{"eager":[["dynamic_table","comparison"],["cta_banner","form"],["sticky_cta","default"]],"leadForm":true},"/en/work-with-us":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/alianzas":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/es/apply":{"eager":[["hero","singleColumn"],["apply_form","default"]],"leadForm":true},"/es/becas":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/es/blog":{"eager":[["list_cards","default"]]},"/es/contactanos":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/es/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/egresados-y-proyectos":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/es/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/es/financiaciones":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/es/geeks-vs-otros":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/es/inicio":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/payment-component":{"eager":[["enrollment_selector","default"]]},"/es/plataforma-online":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/premios":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/es/prensa":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/es/programas-de-carrera/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/programas-de-carrera/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/es/programas-de-carrera/ciberseguridad":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ciencia-de-datos-ml":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/desarrollo-full-stack":{"eager":[["breadcrumb","default"],["hero","course"]]},"/es/programas-de-carrera/ingenieria-ia":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/proximas-fechas":{"eager":[["dynamic_table","comparison"],["sticky_cta","default"]],"leadForm":true},"/es/resultados":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/es/rigobot":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/sobre-la-academia":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/es/soporte-geekpal":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/es/soporte-profesional-geekforce":{"eager":[["hero","productShowcase"],["career_support_explain","default"],["graduates_stats","default"]]},"/es/terminos-y-condiciones":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/testimonios":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/es/trabaja-con-nosotros":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es/trabajo-garantizado":{"eager":[["hero","simpleTwoColumn"],["graduates_stats","fullBleed"],["course_selector","solid"]]},"/es/ubicacion/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/barcelona-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/berlin-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dublin-irlanda":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/hamburgo-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lisboa-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/malaga-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/milan-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/munich-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/nueva-york-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/remoto":{"eager":[["hero","singleColumn"],["banner","default"],["two_column","default"]]},"/es/ubicacion/resto-de-europa":{"eager":[["hero","singleColumn"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/ubicacion/roma-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/valencia-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]}}}}],"locale":"en"}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> badPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> `\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">geek@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">GEEK@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks@Geeks`\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">pass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /(?=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)((?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[A-Z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[a-z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[0-9]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[|!@\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\[\\]\\(\\)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">?$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(pass)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">goodPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> \"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">%G\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">[e](e)?k@1&3$\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">badPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"geek@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"GEEK@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks@Geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">A-Z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">a-z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">0-9\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">|!\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPassword\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(term, text):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(term, text, re.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">MULTILINE\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases, we are returning \u003ccode>True/False\u003c/code> if the password provided matches the requirements.\u003c/p>\n\u003ch3 id=\"regex-for-urls\">RegEx for URLs\u003c/h3>\n\u003cp>Javascript\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">// Check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">url\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">\tconst\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(((https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp):\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> \treturn\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">\t}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^(((\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">:\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)([\\w])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(regex, url))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases we are returning a boolean (\u003ccode>true/false\u003c/code>) if the URL is valid.\u003c/p>\n\u003cp>You can learn more about this topic and others related at \u003ca href=\"https://4geeks.com/\">4Geeks\u003c/a>. Hope you enjoyed the reading and keep on the Geek side!\u003c/p>","section_id":"article-gnx7dr","paddingY":{"desktop":"sm"},"maxWidth":{"desktop":"xl"},"_variableFields":{"content":"{{ single.content | how to content }}"},"_variableKeys":{"content":"content"},"_imageSizes":{}}],"singleEntry":{"id":821,"slug":"regex-examples","title":"RegEx Examples: Mastering Regular Expressions with Practical Cases","description":"On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction","language":"en","translations":{"us":"regex-examples"},"updated_at":"2025-07-16T20:02:03.222Z","image_url":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","technologies":["javascript","python","regular-expression","snippet"],"content":"Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including [Javascript](https://4geeks.com/lesson/what-is-javascript-learn-to-code-in-javascript), Python, and Ruby. For those looking to learn more about regex, a [regex tutorial](https://4geeks.com/lesson/regex-tutorial-regular-expression-examples) is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.\n\n## What are Regular Expressions (RegEx) patterns?\n\nA RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.\n\nCreating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.\n\n### RegEx for emails\n\nEmails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.\n\n### RegEx email inside text\n\nJavascript\n```javascript\n// We receive a text like this, and we want to extract the email address\nconst text = `My name is Geek and my email address is geek@4geeksacademy.com`;\n\nconst findEmail = (str) =>{\n const regex = /\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b/mg;\n return str.match(regex)\n}\n\nconsole.log(findEmail(text))\n//Output -> [geek@4geeksacademy.com]\n```\n\nPython\n```python\ndataset = \"My name is Geek and my mail address is geek@4geeksacademy.com\";\nregex = r\"\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b\"\n\ndef findEmail(term, text):\n match = re.search(term, text)\n return match\n\nprint(findEmail(regex, dataset))\n#Output -> \u003cre.Match object; span=(39, 61), match='geek@4geeksacademy.com'>\n```\n\n### RegEx email \n\nJavascript\n```javascript\n// Check valid email\nconst text = `geek@4geeksacademy.com`;\n\nconst validEmail = (str) =>{\n const regex = new RegExp(\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\")\n return regex.test(str)\n}\n//Output: true\n```\nSince we are checking if the email address has the correct pattern, we are using the `test` method to receive a `true/false` response.\n\nPython\n```python\n#Check valid email\ndataset = \"geek@4geeksacademy.com\"\nregex = r\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\"\ndef validEmail(term, text):\n match = bool(re.search(term, text))\n return match\n\nprint(validEmail(regex, dataset))\n#Output -> True\n```\n\nSince we are checking if the email address has the correct pattern, we are using the `bool` to receive a `true/false` response.\n\n## Numbers **without** decimals (Int)\n\nJavascript\n```javascript\n//Check integer\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkInt = (str) =>{\n const regex = /^(\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkInt(text))\n//Output -> [15]\n```\n\nPython\n\n```python\n#Check integer\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregex = r\"^(\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regex, number))\n#output -> \u003cre.Match object; span=(0, 2), match='15'>\n```\n\n## RegEx decimal numbers (float)\n\nJavascript\n\n```javascript\n#Check float\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkFloat = (str) =>{\n const regex = /^(\\d*)[.,](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkFloat(text))\n//Output -> [ '12.3', '56,7' ]\n```\n\nPython\n\n```python\n#Check Float\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregexFloat = r\"^(\\d*)[.,](\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.findall(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regexFloat, number))\n#output -> [('12', '3'), ('56', '7')]\n```\nWe are using the `findall()` method because we have more than one in our dataset, if you would only want one result, use the `search()` method instead. The output would be `\u003cre.Match object; span=(3, 7), match='12.3'>`\n\n\n### Regex for decimals \n\nJavascript\n\n```javascript\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkDecimals = (str) =>{\n const regex = /^(\\d+)[\\/](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkDecimals(text))\n//Output -> [ '12/4' ]\n```\nPython\n\n```python\n#Check decimals\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\n\nregexDecimals = r\"^(\\d+)[\\/](\\d+)$\"\ndef checkDecimals(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkDecimals(regexDecimals, number))\n#Output -> \u003cre.Match object; span=(13, 17), match='12/4'>\n```\n\n### RegEx for strong password validation\n\nA strong password consists on a minimum length of 6 characters and at least: \n- 1 uppercase\n- 1 lowercase\n- 1 number\n- 1 special character\n\nJavascript\n```javascript\n#Check password\nconst goodPass = `%G[e](e)?k@1&3 RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> badPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> `\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">geek@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">GEEK@123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks123 \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">Geeks@Geeks`\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPass\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">pass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /(?=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)((?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[A-Z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[a-z]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[0-9]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[|!@\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\[\\]\\(\\)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">?$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(pass)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkPass\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">goodPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> \"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">%G\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">[e](e)?k@1&3$\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">badPass \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"geek@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> \u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"GEEK@123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks123\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">\\n\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"Geeks@Geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{6,}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">\\w\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">A-Z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">a-z\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">0-9\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)(?=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">|!\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">$%&\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">)\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)^.\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkPassword\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(term, text):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(term, text, re.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">MULTILINE\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, goodPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkPassword(regex, badPass)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases, we are returning \u003ccode>True/False\u003c/code> if the password provided matches the requirements.\u003c/p>\n\u003ch3 id=\"regex-for-urls\">RegEx for URLs\u003c/h3>\n\u003cp>Javascript\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"javascript\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">// Check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">const\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> (\u003c/span>\u003cspan style=\"--shiki-light:#E36209;--shiki-dark:#F69D50\">url\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">) \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=>\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">{\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">\tconst\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> regex\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> =\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\"> /\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">^\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(((https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp):\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\\-\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w]\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">[\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">/\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">gm\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">;\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> \treturn\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">test\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url)\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">\t}\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> true\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">console.\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">log\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\">checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">//Output -> false\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>Python\u003c/p>\n\u003cfigure data-rehype-pretty-code-figure=\"\">\u003cpre tabindex=\"0\" data-language=\"python\" data-theme=\"github-light github-dark-dimmed\">\u003ccode data-language=\"python\" data-theme=\"github-light github-dark-dimmed\" style=\"display: grid;\">\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#check url\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">def\u003c/span>\u003cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#DCBDFB\"> checkUrl\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(url):\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> regex \u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> r\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">^(((\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">https\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?|\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">ftp\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">:\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">?\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">+\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">(\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">)([\\w])\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">{2,4}\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">([\\w\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\/\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">+=%&_\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\.\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#F47067\">~?\u003c/span>\u003cspan style=\"--shiki-light:#22863A;--shiki-light-font-weight:bold;--shiki-dark:#8DDB8C;--shiki-dark-font-weight:bold\">\\-\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">]\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">))\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">*\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">$\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\">=\u003c/span>\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\"> bool\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(re.search(regex, url))\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F47067\"> return\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\"> match\u003c/span>\u003c/span>\n\u003cspan data-line=\"\"> \u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"www.4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"http://www.google.com\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> True\u003c/span>\u003c/span>\n\u003cspan data-line=\"\">\u003cspan style=\"--shiki-light:#005CC5;--shiki-dark:#6CB6FF\">print\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">(checkUrl(\u003c/span>\u003cspan style=\"--shiki-light:#032F62;--shiki-dark:#96D0FF\">\"4geeks\"\u003c/span>\u003cspan style=\"--shiki-light:#24292E;--shiki-dark:#ADBAC7\">)) \u003c/span>\u003cspan style=\"--shiki-light:#6A737D;--shiki-dark:#768390\">#Output -> False\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/figure>\n\u003cp>In both cases we are returning a boolean (\u003ccode>true/false\u003c/code>) if the URL is valid.\u003c/p>\n\u003cp>You can learn more about this topic and others related at \u003ca href=\"https://4geeks.com/\">4Geeks\u003c/a>. Hope you enjoyed the reading and keep on the Geek side!\u003c/p>","section_id":"article-gnx7dr","paddingY":{"desktop":"sm"},"maxWidth":{"desktop":"xl"},"_variableFields":{"content":"{{ single.content | how to content }}"},"_variableKeys":{"content":"content"},"_imageSizes":{}}],"singleEntry":{"id":821,"slug":"regex-examples","title":"RegEx Examples: Mastering Regular Expressions with Practical Cases","description":"On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction","language":"en","translations":{"us":"regex-examples"},"updated_at":"2025-07-16T20:02:03.222Z","image_url":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","technologies":["javascript","python","regular-expression","snippet"],"content":"Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including [Javascript](https://4geeks.com/lesson/what-is-javascript-learn-to-code-in-javascript), Python, and Ruby. For those looking to learn more about regex, a [regex tutorial](https://4geeks.com/lesson/regex-tutorial-regular-expression-examples) is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.\n\n## What are Regular Expressions (RegEx) patterns?\n\nA RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.\n\nCreating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.\n\n### RegEx for emails\n\nEmails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.\n\n### RegEx email inside text\n\nJavascript\n```javascript\n// We receive a text like this, and we want to extract the email address\nconst text = `My name is Geek and my email address is geek@4geeksacademy.com`;\n\nconst findEmail = (str) =>{\n const regex = /\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b/mg;\n return str.match(regex)\n}\n\nconsole.log(findEmail(text))\n//Output -> [geek@4geeksacademy.com]\n```\n\nPython\n```python\ndataset = \"My name is Geek and my mail address is geek@4geeksacademy.com\";\nregex = r\"\\b[\\w.!#$%&’*+\\/=?^`{|}~-]+@[\\w-]+(?:\\.[\\w-]+)*\\b\"\n\ndef findEmail(term, text):\n match = re.search(term, text)\n return match\n\nprint(findEmail(regex, dataset))\n#Output -> \u003cre.Match object; span=(39, 61), match='geek@4geeksacademy.com'>\n```\n\n### RegEx email \n\nJavascript\n```javascript\n// Check valid email\nconst text = `geek@4geeksacademy.com`;\n\nconst validEmail = (str) =>{\n const regex = new RegExp(\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\")\n return regex.test(str)\n}\n//Output: true\n```\nSince we are checking if the email address has the correct pattern, we are using the `test` method to receive a `true/false` response.\n\nPython\n```python\n#Check valid email\ndataset = \"geek@4geeksacademy.com\"\nregex = r\"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,6})*$\"\ndef validEmail(term, text):\n match = bool(re.search(term, text))\n return match\n\nprint(validEmail(regex, dataset))\n#Output -> True\n```\n\nSince we are checking if the email address has the correct pattern, we are using the `bool` to receive a `true/false` response.\n\n## Numbers **without** decimals (Int)\n\nJavascript\n```javascript\n//Check integer\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkInt = (str) =>{\n const regex = /^(\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkInt(text))\n//Output -> [15]\n```\n\nPython\n\n```python\n#Check integer\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregex = r\"^(\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regex, number))\n#output -> \u003cre.Match object; span=(0, 2), match='15'>\n```\n\n## RegEx decimal numbers (float)\n\nJavascript\n\n```javascript\n#Check float\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkFloat = (str) =>{\n const regex = /^(\\d*)[.,](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkFloat(text))\n//Output -> [ '12.3', '56,7' ]\n```\n\nPython\n\n```python\n#Check Float\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\nregexFloat = r\"^(\\d*)[.,](\\d+)$\"\ndef checkInt(term, text):\n dataset = \"\".join(text)\n match= re.findall(term, dataset, re.MULTILINE)\n return match\n\nprint(checkInt(regexFloat, number))\n#output -> [('12', '3'), ('56', '7')]\n```\nWe are using the `findall()` method because we have more than one in our dataset, if you would only want one result, use the `search()` method instead. The output would be `\u003cre.Match object; span=(3, 7), match='12.3'>`\n\n\n### Regex for decimals \n\nJavascript\n\n```javascript\nconst text = `15 \n12.3 \n56,7 \n12/4`;\n\nconst checkDecimals = (str) =>{\n const regex = /^(\\d+)[\\/](\\d+)$/gm;\n return str.match(regex)\n}\n\nconsole.log(checkDecimals(text))\n//Output -> [ '12/4' ]\n```\nPython\n\n```python\n#Check decimals\nnumber = (\"15\\n\"\n\t\"12.3\\n\"\n\t\"56,7\\n\"\n\t\"12/4\")\n\nregexDecimals = r\"^(\\d+)[\\/](\\d+)$\"\ndef checkDecimals(term, text):\n dataset = \"\".join(text)\n match= re.search(term, dataset, re.MULTILINE)\n return match\n\nprint(checkDecimals(regexDecimals, number))\n#Output -> \u003cre.Match object; span=(13, 17), match='12/4'>\n```\n\n### RegEx for strong password validation\n\nA strong password consists on a minimum length of 6 characters and at least: \n- 1 uppercase\n- 1 lowercase\n- 1 number\n- 1 special character\n\nJavascript\n```javascript\n#Check password\nconst goodPass = `%G[e](e)?k@1&3 RegEx Examples: Mastering Regular Expressions with Practical Cases RegEx Examples: Mastering Regular Expressions with Practical Cases | 4Geeks Academy
4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.See more
Image: 4geeks-devs-logo_1763162063433
SIGN IN

RegEx Examples: Mastering Regular Expressions with Practical Cases

On RegEx examples we'll be covering different regular expressions examples for the most used data. You'll find patterns with working snippets for Javascript and Python for emails and passwords validation, Integers, Float numbers and Decimals extraction
7 min read

Regex, short for regular expressions, is a powerful tool used for text processing and manipulation in programming. It allows developers to define patterns of characters that can be used to match specific strings of text. This can be incredibly useful for tasks such as data validation, parsing, and searching. Regex is used in a wide range of programming languages, including Javascript, Python, and Ruby. For those looking to learn more about regex, a regex tutorial is a great place to start. A good tutorial will cover the basics of regex syntax, provide examples of common use cases, and offer best practices for working with regular expressions. By learning regex, programmers can enhance their skills and write more efficient and effective code.

What are Regular Expressions (RegEx) patterns?

A RegEx pattern is a set of rules applied to match a certain data, let's say an email address, phone number, url and a long list of etc. Everything that follows a strict pattern can be translated into a RegEx pattern.

Creating a RegEx pattern can be tricky, if you're not familiarized with Regular Expressions, so to make our lives easier, here you'll find a list of examples for most used data patterns.

RegEx for emails

Emails are one of the data we receive and have to validate, that's why we are stating our examples with an email pattern that will match any valid email inside a text.

RegEx email inside text

Javascript

javascript
// We receive a text like this, and we want to extract the email address
const text = `My name is Geek and my email address is geek@4geeksacademy.com`;
 
const findEmail = (str) =>{
  const regex = /\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b/mg;
  return  str.match(regex)
}
 
console.log(findEmail(text))
//Output -> [geek@4geeksacademy.com]

Python

python
dataset = "My name is Geek and my mail address is geek@4geeksacademy.com";
regex = r"\b[\w.!#$%&’*+\/=?^`{|}~-]+@[\w-]+(?:\.[\w-]+)*\b"
 
def findEmail(term, text):
    match = re.search(term, text)
    return match
 
print(findEmail(regex, dataset))
#Output -> <re.Match object; span=(39, 61), match='geek@4geeksacademy.com'>

RegEx email

Javascript

javascript
// Check valid email
const text = `geek@4geeksacademy.com`;
 
const validEmail = (str) =>{
  const regex = new RegExp("^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*
quot;
)
return regex.test(str) } //Output: true

Since we are checking if the email address has the correct pattern, we are using the test method to receive a true/false response.

Python

python
#Check valid email
dataset = "geek@4geeksacademy.com"
regex = r"^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})*$"
def validEmail(term, text):
    match = bool(re.search(term, text))
    return match
 
print(validEmail(regex, dataset))
#Output -> True

Since we are checking if the email address has the correct pattern, we are using the bool to receive a true/false response.

Numbers without decimals (Int)

Javascript

javascript
//Check integer
const text = `15 
12.3 
56,7 
12/4`;
 
const checkInt = (str) =>{
  const regex = /^(\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkInt(text))
//Output -> [15]

Python

python
#Check integer
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regex = r"^(\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regex, number))
#output -> <re.Match object; span=(0, 2), match='15'>

RegEx decimal numbers (float)

Javascript

javascript
#Check float
const text = `15 
12.3 
56,7 
12/4`;
 
const checkFloat = (str) =>{
  const regex = /^(\d*)[.,](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkFloat(text))
//Output -> [ '12.3', '56,7' ]

Python

python
#Check Float
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
regexFloat = r"^(\d*)[.,](\d+)$"
def checkInt(term, text):
    dataset = "".join(text)
    match= re.findall(term, dataset, re.MULTILINE)
    return match
 
print(checkInt(regexFloat, number))
#output -> [('12', '3'), ('56', '7')]

We are using the findall() method because we have more than one in our dataset, if you would only want one result, use the search() method instead. The output would be <re.Match object; span=(3, 7), match='12.3'>

Regex for decimals

Javascript

javascript
const text = `15 
12.3 
56,7 
12/4`;
 
const checkDecimals = (str) =>{
  const regex = /^(\d+)[\/](\d+)$/gm;
  return  str.match(regex)
}
 
console.log(checkDecimals(text))
//Output -> [ '12/4' ]

Python

python
#Check decimals
number = ("15\n"
	"12.3\n"
	"56,7\n"
	"12/4")
 
regexDecimals = r"^(\d+)[\/](\d+)$"
def checkDecimals(term, text):
    dataset = "".join(text)
    match= re.search(term, dataset, re.MULTILINE)
    return match
 
print(checkDecimals(regexDecimals, number))
#Output -> <re.Match object; span=(13, 17), match='12/4'>

RegEx for strong password validation

A strong password consists on a minimum length of 6 characters and at least:

  • 1 uppercase
  • 1 lowercase
  • 1 number
  • 1 special character

Javascript

javascript
#Check password
const goodPass = `%G[e](e)?k@1&3

  
    
    

    
    

    
    
    

    
    

    
      The AI Reskilling Platform - Learn Tech Skills with AI-Powered Guidance
    
    

    
    
    
    
    

    
    
    
    
    

    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
const badPass = `
geek@123 
GEEK@123 
Geeks123 
Geeks@Geeks`
 
const checkPass = (pass) =>{
const regex = /(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\[\]\(\)?$%&\/\(\)\?\^\'\\\+\-\*]))^.*/gm;
  return regex.test(pass)
}
console.log(checkPass(goodPass)) //Output -> true
console.log(checkPass(badPass)) //Output -> false

Python

python
goodPass = "%G[e](e)?k@1&3
quot;
badPass = ("geek@123\n" "GEEK@123\n" "Geeks123\n" "Geeks@Geeks") regex = r"(?=^.{6,}$)((?=.*\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\"$%&\/\(\)\?\^\'\\\+\-\*]))^.*" def checkPassword(term, text): match = bool(re.search(term, text, re.MULTILINE)) return match print(checkPassword(regex, goodPass)) #Output -> True print(checkPassword(regex, badPass)) #Output -> False

In both cases, we are returning True/False if the password provided matches the requirements.

RegEx for URLs

Javascript

javascript
// Check url
const checkUrl = (url) =>{
	const regex = /^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$/gm;
 	return regex.test(url)
	}
 
console.log(checkUrl("www.4geeks.com")) //Output -> true
console.log(checkUrl("4geeks.com")) //Output -> true
console.log(checkUrl("http://www.google.com")) //Output -> true
console.log(checkUrl("4geeks")) //Output -> false

Python

python
#check url
def checkUrl(url):
    regex = r"^(((https?|ftp):\/\/)?([\w\-\.])+(\.)([\w]){2,4}([\w\/+=%&_\.~?\-]*))*$"
    match= bool(re.search(regex, url))
    return match
 
print(checkUrl("www.4geeks.com")) #Output -> True
print(checkUrl("4geeks.com")) #Output -> True
print(checkUrl("http://www.google.com")) #Output -> True
print(checkUrl("4geeks")) #Output -> False

In both cases we are returning a boolean (true/false) if the URL is valid.

You can learn more about this topic and others related at 4Geeks. Hope you enjoyed the reading and keep on the Geek side!

\nconst badPass = `\ngeek@123 \nGEEK@123 \nGeeks123 \nGeeks@Geeks`\n\nconst checkPass = (pass) =>{\nconst regex = /(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\\[\\]\\(\\)?$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*/gm;\n return regex.test(pass)\n}\nconsole.log(checkPass(goodPass)) //Output -> true\nconsole.log(checkPass(badPass)) //Output -> false\n```\n\nPython\n\n```python\ngoodPass = \"%G[e](e)?k@1&3$\"\nbadPass = (\"geek@123\\n\" \n\"GEEK@123\\n\"\n\"Geeks123\\n\"\n\"Geeks@Geeks\")\nregex = r\"(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\\\"$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*\"\ndef checkPassword(term, text):\n match = bool(re.search(term, text, re.MULTILINE))\n return match\n\nprint(checkPassword(regex, goodPass)) #Output -> True\nprint(checkPassword(regex, badPass)) #Output -> False\n```\n\nIn both cases, we are returning `True/False` if the password provided matches the requirements.\n\n### RegEx for URLs\n\nJavascript\n\n```javascript\n// Check url\nconst checkUrl = (url) =>{\n\tconst regex = /^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$/gm;\n \treturn regex.test(url)\n\t}\n\nconsole.log(checkUrl(\"www.4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"http://www.google.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks\")) //Output -> false\n```\n\nPython\n\n```python\n#check url\ndef checkUrl(url):\n regex = r\"^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$\"\n match= bool(re.search(regex, url))\n return match\n\nprint(checkUrl(\"www.4geeks.com\")) #Output -> True\nprint(checkUrl(\"4geeks.com\")) #Output -> True\nprint(checkUrl(\"http://www.google.com\")) #Output -> True\nprint(checkUrl(\"4geeks\")) #Output -> False\n```\n\nIn both cases we are returning a boolean (`true/false`) if the URL is valid.\n\nYou can learn more about this topic and others related at [4Geeks](https://4geeks.com/). Hope you enjoyed the reading and keep on the Geek side!","image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","_slug":"regex-examples","locale":"en","_locale":"en","_updated_at":"2025-07-16T20:02:03.222Z","_image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e"},"param":{"slug":"regex-examples","locale":"en"},"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}},{"queryKey":["/api/variables"],"data":{"global.campus_phone":{"default":"+1 (786) 416-6640","conditions":[{"query":{"location":"santiago-de-chile"},"value":"+56 9 5765 3466"},{"query":{"location":"madrid-spain"},"value":"+34 910 86 69 83"},{"query":{"location":"caracas"},"value":"+58 212-555-0100"}]},"global.sample_greeting":{"default":"Welcome to 4Geeks Academy","conditions":[{"query":{"location":"downtown-miami"},"value":"Welcome to 4Geeks Miami"},{"query":{"location":"santiago-de-chile"},"value":"Bienvenido a 4Geeks Santiago"},{"query":{"location":"madrid-spain"},"value":"Bienvenido a 4Geeks Madrid"},{"query":{"region":"latam"},"value":"Bienvenido a 4Geeks Academy"},{"query":{"region":"europe"},"value":"Welcome to 4Geeks Academy"},{"query":{"locale":"es"},"value":"Bienvenido a 4Geeks Academy"}]},"global.workflowlele":{"default":"workflows"},"global.global_job_placement_rate":{"default":"84","conditions":[{"query":{"region":"usa-canada"},"value":"84"},{"query":{"region":"europe"},"value":"75"},{"query":{"region":"latam"},"value":"81"}]},"global.global_salary_increase":{"default":"55","conditions":[{"query":{"region":"usa-canada"},"value":"55"},{"query":{"region":"europe"},"value":"30"},{"query":{"region":"latam"},"value":"40"}]},"global.global_review_rating":{"default":"4.9"},"global.global_review_count":{"default":"700+","conditions":[{"query":{"locale":"es"},"value":"700+"},{"query":{"locale":"en"},"value":"700+"}]},"global.global_teacher_student_ratio":{"default":"1:7","conditions":[{"query":{"region":"europe"},"value":"1:8"}]},"global.call_to_action_apply":{"default":"Apply now","conditions":[{"query":{"location":"santiago-chile"},"value":"Postular Ahora"},{"query":{"location":"madrid-spain"},"value":"Aplicar Ahora"},{"query":{"region":"latam"},"value":"Aplicar Ahora"}]},"global.price_full_datascience":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"3250 USD"}]},"global.price_ai_engineering":{"default":"$399","conditions":[{"query":{"region":"usa-canada"},"value":"$399"},{"query":{"region":"europe"},"value":"140€"},{"query":{"region":"latam"},"value":"459 USD"}]},"global.price_full_ai_engineering":{"default":"$14,999","conditions":[{"query":{"region":"usa-canada"},"value":"$14,999"},{"query":{"region":"europe"},"value":"9.800 €"},{"query":{"region":"latam"},"value":"3500 USD"}]},"global.price_cybersecurity":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_cybersecurity":{"default":"$9,999","conditions":[{"query":{"region":"usa-canada"},"value":"$9,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"2500 USD"}]},"global.price_fullstack":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_fullstack":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"latam"},"value":"2500 USD"},{"query":{"region":"europe"},"value":"6.800 €"}]},"global.price_datascience":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.global_total_alumni":{"default":"4,000","conditions":[{"query":{"locale":"en"},"value":"6,000"},{"query":{"locale":"es"},"value":"6.000"}]},"global.global_salary_cybersecurity_analist":{"default":"$75K–$120K","conditions":[{"query":{"region":"usa-canada"},"value":"$75K–$120K"},{"query":{"region":"europe"},"value":"20.000€ - 25.000€"},{"query":{"region":"latam"},"value":"$30K – $55K"}]},"global.global_salary_penetration_tester":{"default":"$90K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K–$150K"},{"query":{"region":"europe"},"value":"18.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.global_salary_security_engineer":{"default":"$100K–$165K","conditions":[{"query":{"region":"usa-canada"},"value":"$100K–$165K"},{"query":{"region":"europe"},"value":"22.000€- 30.000€"},{"query":{"region":"latam"},"value":"$45K – $75K"}]},"global.global_salary_incident_responder":{"default":"$85K–$140K","conditions":[{"query":{"region":"usa-canada"},"value":"$85K–$140K"},{"query":{"region":"europe"},"value":"25.000€ - 32.000€"},{"query":{"region":"latam"},"value":"$40K – $70K"}]},"global.average_salary_cybersecurity_short":{"default":"$85K","conditions":[{"query":{"region":"europe"},"value":"35.000€"},{"query":{"region":"latam"},"value":"35K USD"}]},"global.salary_data_scientist":{"default":"$80K–$130K","conditions":[{"query":{"region":"usa-canada"},"value":"$80K–$130K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.minimun_isa_salary":{"default":"17.000 €","conditions":[{"query":{"region":"europe"},"value":"17.000 €"}]},"global.average_salary_fullstack":{"default":"$75K–$110K","conditions":[{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$45K – $70K"}]},"global.mounthly_price_bootcamp":{"default":"200 €","conditions":[{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"170 USD"}]},"global.average_salary_machine_learning_engineer":{"default":"$90K–$150K","conditions":[{"query":{"region":"europe"},"value":"22.000 € - 30.000 €"},{"query":{"region":"latam"},"value":"$45K – $80K"}]},"global.average_salary_ai_fluent_software_developer":{"default":"$90 K–$140 K","conditions":[{"query":{"region":"usa-canada"},"value":"$90 K–$140 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$55K – $75K"}]},"global.average_salary_web_aplications_engineer":{"default":"$95K–$140K","conditions":[{"query":{"region":"latam"},"value":"$40K – $65K"},{"query":{"region":"latam"},"value":"$40K – $65K"}]},"global.average_salary_backend_services_developer":{"default":"$100K–$150K","conditions":[{"query":{"region":"latam"},"value":"$50K – $75K"}]},"global.average_salary_data_analyst":{"default":"$60K–$95K","conditions":[{"query":{"region":"usa-canada"},"value":"$60K–$95K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$20K – $40K"}]},"global.average_salary_ai_engineer":{"default":"$95K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$95K–$150K"},{"query":{"region":"latam"},"value":"$40K – $75K"},{"query":{"region":"europe","locale":"es"},"value":"25.000€ - 60.000€"},{"query":{"region":"europe","locale":"en"},"value":"25,000€ - 60,000€"}]},"global.average_salary_ai_specialist":{"default":"$95K–$145K","conditions":[{"query":{"region":"europe"},"value":" 40.000 € - 60.000 €"},{"query":{"region":"latam"},"value":"$25K–$60K USD"}]},"global.average_salary_ai_automation":{"default":"$140K–$210K\"","conditions":[{"query":{"region":"europe"},"value":"30.000 € - 45.000 €"},{"query":{"region":"latam"},"value":"$25K–$40K"}]},"global.monthly_full_stack":{"conditions":[{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.monthly_ai_eng":{"conditions":[{"query":{"region":"latam"},"value":"227 USD"},{"query":{"region":"europe"},"value":"140 €"}]},"global.monthly_cyber":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.global_verified_reviews_count":{"default":"1,000","conditions":[{"query":{"locale":"en"},"value":"700"},{"query":{"locale":"es"},"value":"700"}]},"global.starting_salary_datascience":{"default":"$90K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K"}]},"global.global_spending_cybersecurity":{"default":"$520B USD","conditions":[{"query":{"region":"usa-canada"},"value":"$520B"},{"query":{"region":"europe"},"value":"442.000 M€"}]},"global.lowest_monthly_financing_option":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"}]},"global.anual_income_based_payment_guarantee":{"default":"$35,000","conditions":[{"query":{"locale":"en","region":"usa-canada"},"value":"$35,000"},{"query":{"region":"usa-canada","locale":"es"},"value":"$35.000"}]},"global.job_guarantee_price":{"default":"$2,000","conditions":[{"query":{"region":"usa-canada"},"value":"$2,000"}]},"global.monthly_payment_minimun":{"default":"$349","conditions":[{"query":{"region":"usa-canada"},"value":"$349"}]},"global.global_campuses":{"default":"10","conditions":[{"query":{"region":"usa-canada"},"value":"10"}]},"global.average_salary_agent_engineer":{"default":"$75 K–$115 K","conditions":[{"query":{"region":"usa-canada"},"value":"$75 K–$115 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"}]},"global.average_salary_workflow_automation_engineer":{"default":"$25K–$40K","conditions":[{"query":{"region":"usa-canada"},"value":"$70 K–$110 K"},{"query":{"region":"europe"},"value":"20.000€- 30.000€"}]},"global.data_science_week_duration":{"default":"18","conditions":[{"query":{"region":"europe"},"value":"18 "},{"query":{"region":"latam"},"value":"18"},{"query":{"region":"usa-canada"},"value":"18"}]},"global.ai_engineering_week_duration":{"default":"24 "},"global.cybersecurity_week_duration":{"default":"16 "},"global.fullstack_week_duration":{"default":"20 "},"global.total_scholarships":{"default":"20$M","conditions":[{"query":{"region":"europe"},"value":"17M€"}]},"global.number_of_hiring_partners_aprox":{"default":"400"},"global.who_is_eligible_work_authorization":{"conditions":[{"query":{"region":"latam"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"europe"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"usa-canada"},"value":"Have U.S. work authorization"}],"default":"Have authorization to work in your country of residence"},"global.address_miami":{"default":"1111 Brickell Ave, Miami, FL 33129"},"reserved.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"reserved.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"reserved.consent_whatsapp":{"default":"","isReserved":true},"reserved.consent_sms":{"default":"","isReserved":true},"reserved.consent_email":{"default":"","isReserved":true},"reserved.consent_general":{"default":"","isReserved":true},"global.ai_fluency_price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.ai.fluency.price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.full_tuition_ai_engineering":{"default":"","conditions":[{"query":{"region":"usa-canada"},"value":"Standard tuition is $15,999."}]},"global.ai_flex_path_1_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"}]},"global.ai_flex_path_2_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"}]},"global.ai_flex_path_3_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"}]},"global.ai_flex_path_4_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"}]},"global.ai_fluency_url":{"default":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-ue&cohort=1706"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-fluency-ue&cohort=1706"}]},"global.price_ai_fluency_financing":{"default":"$75"},"global.ai_engineering_program_tracks":{"default":"22 Weeks ","conditions":[{"query":{"region":"usa-canada"},"value":"22 Weeks or 17-Week Accelerated Morning Track"}]},"brand.title":{"default":"4Geeks Academy","isReserved":true},"brand.logo":{"default":"4geeks-devs-logo-1763162063433","isReserved":true},"brand.logo_dark":{"default":"logo-4geeks-white","isReserved":true},"global.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"global.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"global.consent_whatsapp":{"default":"","isReserved":true},"global.consent_sms":{"default":"","isReserved":true},"global.consent_email":{"default":"","isReserved":true},"global.consent_general":{"default":"","isReserved":true}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/content-types"],"data":[{"name":"program","label":"Program","directory":"programs","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","bc_slug","job_role"],"field_mapping_keys":["slug","title","bc_slug","job_role","valid_lead_form_option"],"url_pattern":{"en":"/en/career-programs/:slug","es":"/es/programas-de-carrera/:slug"},"locale_key":null,"static_entry_count":9,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"location","label":"Location","directory":"locations","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","name","latitude","longitude","city"],"field_mapping_keys":["slug","name","city","country","country_code","region","default_language","phone","address","latitude","longitude","timezone","available_programs"],"url_pattern":{"en":"/en/location/:slug","es":"/es/ubicacion/:slug"},"locale_key":null,"static_entry_count":36,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"landing","label":"Landing","directory":"landings","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title","locale"],"url_pattern":{"default":"/landing/:slug"},"locale_key":null,"static_entry_count":32,"database_entry_count":null,"layout":{"menu":{"top":"logo-only","bottom":null}}},{"name":"page","label":"Page","directory":"pages","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title"],"url_pattern":{"en":"/en/:slug","es":"/es/:slug"},"locale_key":null,"static_entry_count":49,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"blog","label":"Blog","directory":"blog","has_database":false,"database_slug":null,"single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","status","category","tags","lang","content","downloadable"],"url_pattern":{"en":"/en/blog/:category/:slug","es":"/es/blog/:category/:slug"},"locale_key":"locale","static_entry_count":227,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"downloadable","label":"Downloadable","directory":"downloadable","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","pdf_url"],"url_pattern":{"en":"/en/downloadable/:slug","es":"/es/descargable/:slug"},"locale_key":"locale","static_entry_count":4,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"outcome-report","label":"Outcome-report","directory":"outcome-report","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":false,"unique_fields":["slug"],"field_mapping_keys":[],"url_pattern":{"en":"/en/outcomes-report/:slug","es":"/es/informe-de-resultados/:slug"},"locale_key":null,"static_entry_count":1,"database_entry_count":null,"layout":{"menu":{"top":null,"bottom":null}}},{"name":"how-to","label":"How-to","directory":"how-to","has_database":true,"database_slug":"how_to","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","slug","description","image","content","updated_at","technologies"],"url_pattern":{"en":"/en/how-to/:slug","es":"/es/how-to/:slug"},"locale_key":"language","static_entry_count":11,"database_entry_count":114,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"interactive-exercise","label":"Interactive-exercise","directory":"interactive-exercise","has_database":true,"database_slug":"interactive-exercises","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","category","tags","content","category_name","learnpack_url","interactive","video","difficulty","duration","manifest","language"],"url_pattern":{"en":"/en/interactive-exercise/:slug","es":"/es/interactive-exercise/:slug"},"locale_key":"language","static_entry_count":0,"database_entry_count":72,"layout":{"menu":{"top":"main-navbar","bottom":null}}},{"name":"lesson","label":"Lesson","directory":"lesson","has_database":true,"database_slug":"lesson","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","category","tags","content","is_featured"],"url_pattern":{"en":"/en/lesson/:slug","es":"/es/lesson/:slug"},"locale_key":"language","static_entry_count":1,"database_entry_count":0,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}]},{"queryKey":["/api/image-registry"],"data":{"presets":{"hero-wide":{"aspect_ratio":"16:9","widths":[320,480,640,720,960,1280,1920],"quality":85,"description":"Full-width hero images"},"hero-tall":{"aspect_ratio":"9:16","widths":[360,480,640],"quality":85,"description":"Vertical hero images for mobile-style content"},"card":{"aspect_ratio":"4:3","widths":[320,480,640],"quality":80,"description":"Standard card thumbnails"},"card-wide":{"aspect_ratio":"16:9","widths":[320,480,640],"quality":80,"description":"Wide card thumbnails"},"avatar":{"aspect_ratio":"1:1","widths":[32,64,128,256],"quality":85,"description":"Profile pictures and avatars"},"logo":{"aspect_ratio":null,"widths":[32,64,120,240],"quality":90,"description":"Company logos, preserves original aspect ratio"},"icon":{"aspect_ratio":"1:1","widths":[32,64,128],"quality":90,"description":"Small icons and badges"},"full":{"aspect_ratio":null,"widths":[640,960,1280,1920],"quality":85,"description":"Full-size images, preserves original aspect ratio"}},"images":{"4geeks-devs-logo-1763162063433":{"src":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433.png","alt":"Image: 4geeks-devs-logo_1763162063433","focal_point":"center","tags":["logo"],"usage_count":0,"hash":"25422248ede1db8734e27ad0c5d3d67b6e7df20a60911995b5de0d50e6048ec9","width":359,"height":82,"preset":["logo"],"widths_generated":[32,64,120,240],"format":"webp","srcset":[{"w":32,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-32w.webp"},{"w":64,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-64w.webp"},{"w":120,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-120w.webp"},{"w":240,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-240w.webp"}]}},"tagDefinitions":{"hero":{"label":"Hero","description":"Full-width hero or banner images used in page headers","presets":["hero-wide","hero-tall"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["hero.image","hero.background_image","hero.media.src"],"component_keys":["hero","hero_showcase","hero_singleColumn","hero_twoColumn","hero_productShowcase"],"filename_patterns":["hero","banner","header-bg"],"aspect_ratio_range":{"min":1.5,"max":3}}},"logo":{"label":"Logo","description":"Company or partner logos, typically wide and short","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["logo","partner_logo","brand_logo"],"component_keys":["partners","trust_badges"],"filename_patterns":["logo","brand","company"],"aspect_ratio_range":{"min":1,"max":6}}},"avatar":{"label":"Avatar","description":"Profile pictures, headshots, or user avatars","presets":["avatar"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["avatar","profile_image","headshot","testimonial.image"],"component_keys":["testimonials","team","staff"],"filename_patterns":["avatar","headshot","profile","portrait"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"card":{"label":"Card","description":"Thumbnails used in card layouts and grids","presets":["card","card-wide"],"srcset_widths":[320,480,640],"detection":{"yaml_fields":["card.image","thumbnail"],"component_keys":["cards","grid","features"],"filename_patterns":["card","thumb","thumbnail"],"aspect_ratio_range":{"min":0.75,"max":2}}},"icon":{"label":"Icon","description":"Small icons, badges, or UI elements","presets":["icon"],"srcset_widths":[32,64,128],"detection":{"yaml_fields":["icon","badge_icon"],"component_keys":["icons","features"],"filename_patterns":["icon","ico","symbol"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"photo":{"label":"Photo","description":"General photographs of people, places, or events","presets":["full","card"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["image","photo"],"component_keys":["gallery","about"],"filename_patterns":["photo","campus","classroom","event"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"badge":{"label":"Badge","description":"Award badges, certification marks, or trust seals","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["badge","certification","seal"],"component_keys":["badges","awards","certifications"],"filename_patterns":["badge","seal","certification","cert"],"aspect_ratio_range":{"min":0.6,"max":1.6}}},"partner":{"label":"Partner","description":"Partner organization logos and images","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["partner.logo","partner_image"],"component_keys":["partners","collaborators"],"filename_patterns":["partner","sponsor","university","college"],"aspect_ratio_range":{"min":1,"max":5}}},"press":{"label":"Press","description":"Press and media mentions, publication logos","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["press_logo","publication"],"component_keys":["press","media_mentions"],"filename_patterns":["press","media","news","forbes","newsweek","fortune"],"aspect_ratio_range":{"min":1,"max":5}}},"illustration":{"label":"Illustration","description":"Illustrations, diagrams, or infographics","presets":["full","card"],"srcset_widths":[320,640,960],"detection":{"yaml_fields":["illustration","diagram"],"component_keys":["features","how_it_works"],"filename_patterns":["illustration","diagram","infographic","graphic"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"testimonial":{"label":"Testimonial","description":"Images associated with student or alumni testimonials","presets":["avatar","card"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["testimonial.image","review.image"],"component_keys":["testimonials","reviews","success_stories"],"filename_patterns":["testimonial","review","success"],"aspect_ratio_range":{"min":0.8,"max":1.5}}},"team":{"label":"Team","description":"Staff, instructor, or team member photos","presets":["avatar","card"],"srcset_widths":[128,256,480],"detection":{"yaml_fields":["staff.image","instructor.image","team.image"],"component_keys":["team","staff","instructors"],"filename_patterns":["team","staff","instructor","teacher","mentor"],"aspect_ratio_range":{"min":0.7,"max":1.5}}},"award":{"label":"Award","description":"Award images, accolades, or recognition marks","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["award","accolade"],"component_keys":["awards","recognition"],"filename_patterns":["award","accolade","recognition","prize","course-report","switchup"],"aspect_ratio_range":{"min":0.6,"max":1.6}}}}}},{"queryKey":["navigation-eager-manifest"],"data":{"version":1,"generatedAt":"2026-08-06T05:37:07.633Z","defaultEagerCount":3,"paths":{"/":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/apply":{"eager":[["hero","singleColumn"],["apply_form","default"],["breadcrumb","default"]],"leadForm":true},"/en/awards":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/en/blog":{"eager":[["list_cards","default"]]},"/en/career-programs/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/en/career-programs/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/en/career-programs/cybersecurity":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/data-science-ml":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/full-stack":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/contact-us":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/en/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/en/financials":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/en/geekforce-career-support":{"eager":[["hero","productShowcase"],["graduates_stats","default"],["career_support_explain","default"]]},"/en/geekpal-support":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/en/geeks-vs-others":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/en/graduates-and-projects":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/en/home":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/job-guarantee":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["graduates_stats","fullBleed"]]},"/en/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/location/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/barcelona-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/berlin-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dublin-ireland":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/hamburg-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lisbon-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/malaga-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/mexicocity-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/milan-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/munich-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/newyork-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/panamacity-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/remote":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rest-of-europe":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rome-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/valencia-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/online-platform":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/outcomes":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/en/partners":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/en/payment-component":{"eager":[["enrollment_selector","default"]]},"/en/press":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/en/privacy-policy":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/program-comparison":{"eager":[["hero","orbit"],["comparison_table","default"]]},"/en/rigobot-ai-coding-mentor":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/scholarships":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/en/terms-conditions":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/testimonials":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/en/the-academy":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/en/upcoming-dates":{"eager":[["dynamic_table","comparison"],["cta_banner","form"],["sticky_cta","default"]],"leadForm":true},"/en/work-with-us":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/alianzas":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/es/apply":{"eager":[["hero","singleColumn"],["apply_form","default"]],"leadForm":true},"/es/becas":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/es/blog":{"eager":[["list_cards","default"]]},"/es/contactanos":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/es/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/egresados-y-proyectos":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/es/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/es/financiaciones":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/es/geeks-vs-otros":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/es/inicio":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/payment-component":{"eager":[["enrollment_selector","default"]]},"/es/plataforma-online":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/premios":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/es/prensa":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/es/programas-de-carrera/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/programas-de-carrera/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/es/programas-de-carrera/ciberseguridad":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ciencia-de-datos-ml":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/desarrollo-full-stack":{"eager":[["breadcrumb","default"],["hero","course"]]},"/es/programas-de-carrera/ingenieria-ia":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/proximas-fechas":{"eager":[["dynamic_table","comparison"],["sticky_cta","default"]],"leadForm":true},"/es/resultados":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/es/rigobot":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/sobre-la-academia":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/es/soporte-geekpal":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/es/soporte-profesional-geekforce":{"eager":[["hero","productShowcase"],["career_support_explain","default"],["graduates_stats","default"]]},"/es/terminos-y-condiciones":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/testimonios":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/es/trabaja-con-nosotros":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es/trabajo-garantizado":{"eager":[["hero","simpleTwoColumn"],["graduates_stats","fullBleed"],["course_selector","solid"]]},"/es/ubicacion/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/barcelona-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/berlin-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dublin-irlanda":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/hamburgo-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lisboa-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/malaga-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/milan-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/munich-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/nueva-york-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/remoto":{"eager":[["hero","singleColumn"],["banner","default"],["two_column","default"]]},"/es/ubicacion/resto-de-europa":{"eager":[["hero","singleColumn"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/ubicacion/roma-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/valencia-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]}}}}],"locale":"en"}\nconst badPass = `\ngeek@123 \nGEEK@123 \nGeeks123 \nGeeks@Geeks`\n\nconst checkPass = (pass) =>{\nconst regex = /(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!@\\[\\]\\(\\)?$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*/gm;\n return regex.test(pass)\n}\nconsole.log(checkPass(goodPass)) //Output -> true\nconsole.log(checkPass(badPass)) //Output -> false\n```\n\nPython\n\n```python\ngoodPass = \"%G[e](e)?k@1&3$\"\nbadPass = (\"geek@123\\n\" \n\"GEEK@123\\n\"\n\"Geeks123\\n\"\n\"Geeks@Geeks\")\nregex = r\"(?=^.{6,}$)((?=.*\\w)(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[|!\\\"$%&\\/\\(\\)\\?\\^\\'\\\\\\+\\-\\*]))^.*\"\ndef checkPassword(term, text):\n match = bool(re.search(term, text, re.MULTILINE))\n return match\n\nprint(checkPassword(regex, goodPass)) #Output -> True\nprint(checkPassword(regex, badPass)) #Output -> False\n```\n\nIn both cases, we are returning `True/False` if the password provided matches the requirements.\n\n### RegEx for URLs\n\nJavascript\n\n```javascript\n// Check url\nconst checkUrl = (url) =>{\n\tconst regex = /^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$/gm;\n \treturn regex.test(url)\n\t}\n\nconsole.log(checkUrl(\"www.4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks.com\")) //Output -> true\nconsole.log(checkUrl(\"http://www.google.com\")) //Output -> true\nconsole.log(checkUrl(\"4geeks\")) //Output -> false\n```\n\nPython\n\n```python\n#check url\ndef checkUrl(url):\n regex = r\"^(((https?|ftp):\\/\\/)?([\\w\\-\\.])+(\\.)([\\w]){2,4}([\\w\\/+=%&_\\.~?\\-]*))*$\"\n match= bool(re.search(regex, url))\n return match\n\nprint(checkUrl(\"www.4geeks.com\")) #Output -> True\nprint(checkUrl(\"4geeks.com\")) #Output -> True\nprint(checkUrl(\"http://www.google.com\")) #Output -> True\nprint(checkUrl(\"4geeks\")) #Output -> False\n```\n\nIn both cases we are returning a boolean (`true/false`) if the URL is valid.\n\nYou can learn more about this topic and others related at [4Geeks](https://4geeks.com/). Hope you enjoyed the reading and keep on the Geek side!","image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e","_slug":"regex-examples","locale":"en","_locale":"en","_updated_at":"2025-07-16T20:02:03.222Z","_image":"https://storage.googleapis.com/media-breathecode/befc68805b21129a8bddb8b19c2cf837475a10d7013ad834eed91abf2b5c012e"},"param":{"slug":"regex-examples","locale":"en"},"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}},{"queryKey":["/api/variables"],"data":{"global.campus_phone":{"default":"+1 (786) 416-6640","conditions":[{"query":{"location":"santiago-de-chile"},"value":"+56 9 5765 3466"},{"query":{"location":"madrid-spain"},"value":"+34 910 86 69 83"},{"query":{"location":"caracas"},"value":"+58 212-555-0100"}]},"global.sample_greeting":{"default":"Welcome to 4Geeks Academy","conditions":[{"query":{"location":"downtown-miami"},"value":"Welcome to 4Geeks Miami"},{"query":{"location":"santiago-de-chile"},"value":"Bienvenido a 4Geeks Santiago"},{"query":{"location":"madrid-spain"},"value":"Bienvenido a 4Geeks Madrid"},{"query":{"region":"latam"},"value":"Bienvenido a 4Geeks Academy"},{"query":{"region":"europe"},"value":"Welcome to 4Geeks Academy"},{"query":{"locale":"es"},"value":"Bienvenido a 4Geeks Academy"}]},"global.workflowlele":{"default":"workflows"},"global.global_job_placement_rate":{"default":"84","conditions":[{"query":{"region":"usa-canada"},"value":"84"},{"query":{"region":"europe"},"value":"75"},{"query":{"region":"latam"},"value":"81"}]},"global.global_salary_increase":{"default":"55","conditions":[{"query":{"region":"usa-canada"},"value":"55"},{"query":{"region":"europe"},"value":"30"},{"query":{"region":"latam"},"value":"40"}]},"global.global_review_rating":{"default":"4.9"},"global.global_review_count":{"default":"700+","conditions":[{"query":{"locale":"es"},"value":"700+"},{"query":{"locale":"en"},"value":"700+"}]},"global.global_teacher_student_ratio":{"default":"1:7","conditions":[{"query":{"region":"europe"},"value":"1:8"}]},"global.call_to_action_apply":{"default":"Apply now","conditions":[{"query":{"location":"santiago-chile"},"value":"Postular Ahora"},{"query":{"location":"madrid-spain"},"value":"Aplicar Ahora"},{"query":{"region":"latam"},"value":"Aplicar Ahora"}]},"global.price_full_datascience":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"3250 USD"}]},"global.price_ai_engineering":{"default":"$399","conditions":[{"query":{"region":"usa-canada"},"value":"$399"},{"query":{"region":"europe"},"value":"140€"},{"query":{"region":"latam"},"value":"459 USD"}]},"global.price_full_ai_engineering":{"default":"$14,999","conditions":[{"query":{"region":"usa-canada"},"value":"$14,999"},{"query":{"region":"europe"},"value":"9.800 €"},{"query":{"region":"latam"},"value":"3500 USD"}]},"global.price_cybersecurity":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_cybersecurity":{"default":"$9,999","conditions":[{"query":{"region":"usa-canada"},"value":"$9,999"},{"query":{"region":"europe"},"value":"7.800 €"},{"query":{"region":"latam"},"value":"2500 USD"}]},"global.price_fullstack":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.price_full_fullstack":{"default":"$10,999","conditions":[{"query":{"region":"usa-canada"},"value":"$10,999"},{"query":{"region":"latam"},"value":"2500 USD"},{"query":{"region":"europe"},"value":"6.800 €"}]},"global.price_datascience":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"},{"query":{"region":"latam"},"value":"388 USD"}]},"global.global_total_alumni":{"default":"4,000","conditions":[{"query":{"locale":"en"},"value":"6,000"},{"query":{"locale":"es"},"value":"6.000"}]},"global.global_salary_cybersecurity_analist":{"default":"$75K–$120K","conditions":[{"query":{"region":"usa-canada"},"value":"$75K–$120K"},{"query":{"region":"europe"},"value":"20.000€ - 25.000€"},{"query":{"region":"latam"},"value":"$30K – $55K"}]},"global.global_salary_penetration_tester":{"default":"$90K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K–$150K"},{"query":{"region":"europe"},"value":"18.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.global_salary_security_engineer":{"default":"$100K–$165K","conditions":[{"query":{"region":"usa-canada"},"value":"$100K–$165K"},{"query":{"region":"europe"},"value":"22.000€- 30.000€"},{"query":{"region":"latam"},"value":"$45K – $75K"}]},"global.global_salary_incident_responder":{"default":"$85K–$140K","conditions":[{"query":{"region":"usa-canada"},"value":"$85K–$140K"},{"query":{"region":"europe"},"value":"25.000€ - 32.000€"},{"query":{"region":"latam"},"value":"$40K – $70K"}]},"global.average_salary_cybersecurity_short":{"default":"$85K","conditions":[{"query":{"region":"europe"},"value":"35.000€"},{"query":{"region":"latam"},"value":"35K USD"}]},"global.salary_data_scientist":{"default":"$80K–$130K","conditions":[{"query":{"region":"usa-canada"},"value":"$80K–$130K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$35K – $65K"}]},"global.minimun_isa_salary":{"default":"17.000 €","conditions":[{"query":{"region":"europe"},"value":"17.000 €"}]},"global.average_salary_fullstack":{"default":"$75K–$110K","conditions":[{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$45K – $70K"}]},"global.mounthly_price_bootcamp":{"default":"200 €","conditions":[{"query":{"region":"europe"},"value":"200 €"},{"query":{"region":"latam"},"value":"170 USD"}]},"global.average_salary_machine_learning_engineer":{"default":"$90K–$150K","conditions":[{"query":{"region":"europe"},"value":"22.000 € - 30.000 €"},{"query":{"region":"latam"},"value":"$45K – $80K"}]},"global.average_salary_ai_fluent_software_developer":{"default":"$90 K–$140 K","conditions":[{"query":{"region":"usa-canada"},"value":"$90 K–$140 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$55K – $75K"}]},"global.average_salary_web_aplications_engineer":{"default":"$95K–$140K","conditions":[{"query":{"region":"latam"},"value":"$40K – $65K"},{"query":{"region":"latam"},"value":"$40K – $65K"}]},"global.average_salary_backend_services_developer":{"default":"$100K–$150K","conditions":[{"query":{"region":"latam"},"value":"$50K – $75K"}]},"global.average_salary_data_analyst":{"default":"$60K–$95K","conditions":[{"query":{"region":"usa-canada"},"value":"$60K–$95K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"},{"query":{"region":"latam"},"value":"$20K – $40K"}]},"global.average_salary_ai_engineer":{"default":"$95K–$150K","conditions":[{"query":{"region":"usa-canada"},"value":"$95K–$150K"},{"query":{"region":"latam"},"value":"$40K – $75K"},{"query":{"region":"europe","locale":"es"},"value":"25.000€ - 60.000€"},{"query":{"region":"europe","locale":"en"},"value":"25,000€ - 60,000€"}]},"global.average_salary_ai_specialist":{"default":"$95K–$145K","conditions":[{"query":{"region":"europe"},"value":" 40.000 € - 60.000 €"},{"query":{"region":"latam"},"value":"$25K–$60K USD"}]},"global.average_salary_ai_automation":{"default":"$140K–$210K\"","conditions":[{"query":{"region":"europe"},"value":"30.000 € - 45.000 €"},{"query":{"region":"latam"},"value":"$25K–$40K"}]},"global.monthly_full_stack":{"conditions":[{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.monthly_ai_eng":{"conditions":[{"query":{"region":"latam"},"value":"227 USD"},{"query":{"region":"europe"},"value":"140 €"}]},"global.monthly_cyber":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"latam"},"value":"150 USD"},{"query":{"region":"europe"},"value":"200 €"}]},"global.global_verified_reviews_count":{"default":"1,000","conditions":[{"query":{"locale":"en"},"value":"700"},{"query":{"locale":"es"},"value":"700"}]},"global.starting_salary_datascience":{"default":"$90K","conditions":[{"query":{"region":"usa-canada"},"value":"$90K"}]},"global.global_spending_cybersecurity":{"default":"$520B USD","conditions":[{"query":{"region":"usa-canada"},"value":"$520B"},{"query":{"region":"europe"},"value":"442.000 M€"}]},"global.lowest_monthly_financing_option":{"default":"$299","conditions":[{"query":{"region":"usa-canada"},"value":"$299"},{"query":{"region":"europe"},"value":"200€"}]},"global.anual_income_based_payment_guarantee":{"default":"$35,000","conditions":[{"query":{"locale":"en","region":"usa-canada"},"value":"$35,000"},{"query":{"region":"usa-canada","locale":"es"},"value":"$35.000"}]},"global.job_guarantee_price":{"default":"$2,000","conditions":[{"query":{"region":"usa-canada"},"value":"$2,000"}]},"global.monthly_payment_minimun":{"default":"$349","conditions":[{"query":{"region":"usa-canada"},"value":"$349"}]},"global.global_campuses":{"default":"10","conditions":[{"query":{"region":"usa-canada"},"value":"10"}]},"global.average_salary_agent_engineer":{"default":"$75 K–$115 K","conditions":[{"query":{"region":"usa-canada"},"value":"$75 K–$115 K"},{"query":{"region":"europe"},"value":"20.000€ - 30.000€"}]},"global.average_salary_workflow_automation_engineer":{"default":"$25K–$40K","conditions":[{"query":{"region":"usa-canada"},"value":"$70 K–$110 K"},{"query":{"region":"europe"},"value":"20.000€- 30.000€"}]},"global.data_science_week_duration":{"default":"18","conditions":[{"query":{"region":"europe"},"value":"18 "},{"query":{"region":"latam"},"value":"18"},{"query":{"region":"usa-canada"},"value":"18"}]},"global.ai_engineering_week_duration":{"default":"24 "},"global.cybersecurity_week_duration":{"default":"16 "},"global.fullstack_week_duration":{"default":"20 "},"global.total_scholarships":{"default":"20$M","conditions":[{"query":{"region":"europe"},"value":"17M€"}]},"global.number_of_hiring_partners_aprox":{"default":"400"},"global.who_is_eligible_work_authorization":{"conditions":[{"query":{"region":"latam"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"europe"},"value":"Have authorization to work in your country of residence"},{"query":{"region":"usa-canada"},"value":"Have U.S. work authorization"}],"default":"Have authorization to work in your country of residence"},"global.address_miami":{"default":"1111 Brickell Ave, Miami, FL 33129"},"reserved.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"reserved.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"reserved.consent_whatsapp":{"default":"","isReserved":true},"reserved.consent_sms":{"default":"","isReserved":true},"reserved.consent_email":{"default":"","isReserved":true},"reserved.consent_general":{"default":"","isReserved":true},"global.ai_fluency_price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.ai.fluency.price":{"default":"$900","conditions":[{"query":{"region":"europe"},"value":"€900"},{"query":{"region":"latam"},"value":"$500"}]},"global.full_tuition_ai_engineering":{"default":"","conditions":[{"query":{"region":"usa-canada"},"value":"Standard tuition is $15,999."}]},"global.ai_flex_path_1_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1713&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1713&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1713&team_seats=1"}]},"global.ai_flex_path_2_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1717&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1717&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1717&team_seats=1"}]},"global.ai_flex_path_3_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1719&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1719&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1719&team_seats=1"}]},"global.ai_flex_path_4_url":{"default":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-flex-plan-pro&cohort=1718&team_seats=1"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-ue&cohort=1718&team_seats=1"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-flex-pro-latam&cohort=1718&team_seats=1"}]},"global.ai_fluency_url":{"default":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706","conditions":[{"query":{"region":"usa-canada","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe","locale":"es"},"value":"https://4geeks.com/es/checkout?plan=ai-fluency-ue&cohort=1706"},{"query":{"region":"usa-canada"},"value":"https://4geeks.com/checkout?plan=ai-fluency&cohort=1706"},{"query":{"region":"latam"},"value":"https://4geeks.com/checkout?plan=ai-fluency-latam&cohort=1706"},{"query":{"region":"europe"},"value":"https://4geeks.com/checkout?plan=ai-fluency-ue&cohort=1706"}]},"global.price_ai_fluency_financing":{"default":"$75"},"global.ai_engineering_program_tracks":{"default":"22 Weeks ","conditions":[{"query":{"region":"usa-canada"},"value":"22 Weeks or 17-Week Accelerated Morning Track"}]},"brand.title":{"default":"4Geeks Academy","isReserved":true},"brand.logo":{"default":"4geeks-devs-logo-1763162063433","isReserved":true},"brand.logo_dark":{"default":"logo-4geeks-white","isReserved":true},"global.legal_terms_url":{"default":"/en/terms-conditions","isReserved":true},"global.legal_privacy_url":{"default":"/en/privacy-policy","isReserved":true},"global.consent_whatsapp":{"default":"","isReserved":true},"global.consent_sms":{"default":"","isReserved":true},"global.consent_email":{"default":"","isReserved":true},"global.consent_general":{"default":"","isReserved":true}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/menus","main-navbar","en"],"data":{"name":"main-navbar","locale":"en","data":{"navbar":{"items":[{"label":"Logo","href":"/","component":"Logo","imageId":"4geeks-devs-logo-1763162063433","imageAlt":"Image: 4geeks-devs-logo_1763162063433"},{"label":"PROGRAMS","href":"/programs","component":"Dropdown","dropdown":{"type":"cards","title":"Programs","description":"From beginner to job-ready in record time. Train in today's most in-demand tech fields and launch a lasting career.","items":[{"title":"AI Engineering","description":"Transform a business into a fully AI-native system, layer by layer.","cta":"View program","href":"/en/career-programs/ai-engineering","icon":"brain"},{"title":"AI Fluency","description":"Automate your daily work with AI and become irreplaceable, in just 4 weeks","cta":"Learn More","href":"/en/career-programs/ai-fluency","icon":"briefcase"},{"title":"AI Flex","description":"A personalized path through AI, automation, and more, at your own pace.","cta":"Learn more","href":"/en/career-programs/ai-flex","icon":"puzzle"}],"footer":{"text":"\u003cb>Unsure which program fits you best? \u003c/b>See our program comparison \u003ca href=\"/en/program-comparison\">here\u003c/a>.\u003cbr>\u003cbr>\u003cspan style=\"font-size: 0.75rem;\">Florida residents: Only our full-stack development program is authorized by the Commission for Independent Education in Florida. Our job guarantee bundle is not offered in Florida where our only physical location is in Miami.\u003c/span>"}}},{"label":"WHY 4GEEKS","href":"/why-4geeks","component":"Dropdown","dropdown":{"type":"columns","title":"Why 4Geeks","description":"Launch your tech career with the unlimited support of expert mentors, AI-powered tools, and personalized career guidance. With strong outcomes and global recognition, we've helped thousands thrive in tech.","icon":"medal","columns":[{"title":"Support","items":[{"label":"Mentors and teachers","href":"/en/geekpal-support"},{"label":"Career Support","href":"/en/geekforce-career-support"},{"label":"Online Platform","href":"/en/online-platform"},{"label":"Rigobot","href":"/en/rigobot-ai-coding-mentor"},{"label":"LearnPack","href":"/en/learnpack"}]},{"title":"Validation","items":[{"label":"Awards","href":"/en/awards"},{"label":"Outcomes","href":"/en/outcomes"},{"label":"4Geeks Vs Others","href":"/en/geeks-vs-others"}]},{"title":"Pricing","items":[{"label":"Financing","href":"/en/financials"},{"label":"Scholarships","href":"/en/scholarships"},{"label":"Job Guarantee","href":"/en/job-guarantee"}]},{"title":"Our Students","items":[{"label":"Alumni & Projects","href":"/en/graduates-and-projects"},{"label":"Testimonials","href":"/en/testimonials"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"}]}]}},{"label":"THE ACADEMY","href":"/the-academy","component":"Dropdown","dropdown":{"type":"simple-list","title":"The Academy","description":"Join a global learning community where tech, community, and innovation come together to accelerate careers.","icon":"graduation-cap","items":[{"label":"Hire our alumni","href":"https://www.notion.so/4geeksacademy/4Geeks-Talent-Hub-USA-ef91aba17f9c4964bf7972396d190bdf"},{"label":"Partner with 4Geeks","href":"/en/partners"},{"label":"Work with us","href":"/en/work-with-us"},{"label":"Who we are","href":"/en/the-academy"},{"label":"Press","href":"/en/press"},{"label":"Blog","href":"/en/blog"}]}},{"label":"CAMPUS","href":"/campus","component":"Dropdown","dropdown":{"type":"grouped-list","title":"Our Campus","description":"Study in-person at one of our global campuses, or join remotely and access the same world-class training and community.","icon":"building","groups":[{"title":"US & CANADA","items":[{"label":"Miami, USA","href":"/en/location/miami-usa"},{"label":"New York, USA","href":"/en/location/newyork-usa"},{"label":"Dallas, USA","href":"/en/location/dallas-usa"},{"label":"Toronto, Canada","href":"/en/location/toronto-canada"},{"label":"Atlanta, USA","href":"/en/location/atlanta-usa"},{"label":"Austin, USA","href":"/en/location/austin-usa"},{"label":"Chicago, USA","href":"/en/location/chicago-usa"},{"label":"Houston, USA","href":"/en/location/houston-usa"},{"label":"Los Angeles, USA","href":"/en/location/losangeles-usa"},{"label":"Remote, USA","href":"/en/location/remote"}]},{"title":"EUROPE","items":[{"label":"Madrid, Spain","href":"/en/location/madrid-spain"},{"label":"Barcelona, Spain","href":"/en/location/barcelona-spain"},{"label":"Valencia, Spain","href":"/en/location/valencia-spain"},{"label":"Malaga, Spain","href":"/en/location/malaga-spain"},{"label":"Berlin, Germany","href":"/en/location/berlin-germany"},{"label":"Lisbon, Portugal","href":"/en/location/lisbon-portugal"},{"label":"Hamburg, Germany","href":"/en/location/hamburg-germany"},{"label":"Munich, Germany","href":"/en/location/munich-germany"},{"label":"Dublin, Ireland","href":"/en/location/dublin-ireland"},{"label":"Milan, Italy","href":"/en/location/milan-italy"},{"label":"Rome, Italy","href":"/en/location/rome-italy"},{"label":"Rest of Europe","href":"/en/location/rest-of-europe"}]},{"title":"LATAM","items":[{"label":"Santiago, Chile","href":"/en/location/santiago-chile"},{"label":"Bogota, Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico City, Mexico","href":"/en/location/mexicocity-mexico"},{"label":"Caracas, Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Buenos Aires, Argentina","href":"/en/location/buenosaires-argentina"},{"label":"La Paz, Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Costa Rica ","href":"/en/location/costa-rica"},{"label":"Quito, Ecuador","href":"/en/location/quito-ecuador"},{"label":"Panama City, Panama","href":"/en/location/panamacity-panama"},{"label":"Montevideo, Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Lima, Peru","href":"/en/location/lima-peru"},{"label":"Rest Of America","href":"/en/location/remote"}]}]}},{"label":"UPCOMING DATES","href":"/en/upcoming-dates","component":"SimpleLink"},{"label":"LanguageSwitcher","href":"#","component":"LanguageSwitcher"},{"label":"SIGN IN","href":"https://learn.4geeks.com/login","component":"Button"}],"marquee":{"enabled":true,"position":"above","texts":[{"text":"4Geeks chosen to deliver AI education in the Bahamas alongside Harvard, Oxford, and Columbia.","cta_label":"See more","cta_url":"https://www.entnerd.com/startup-chilena-es-reclutada-por-bahamas-junto-a-oxford-columbia-y-harvard-para-dar-clases-gratuitas-online/","cta_url_overrides":{"/":"#list_press_mentions-w7r1sh","/home":"#list_press_mentions-w7r1sh"}}],"char_delay":20,"display_time":6500},"floating":true,"subtle_at_top":true}}}},{"queryKey":["/api/menus","main-footer","en"],"data":{"name":"main-footer","locale":"en","data":{"footer":{"columns":[{"title":"Company","items":[{"label":"Academy","href":"/en/the-academy"},{"label":"Partners","href":"/en/partners"},{"label":"Pricing","href":"/en/financials"},{"label":"Events","href":"/en/next-dates"},{"label":"Upcoming Dates","href":"/en/upcoming-dates"},{"label":"FAQ","href":"/en/faq"},{"label":"Contact Us","href":"/en/contact-us"}]},{"title":"Programs","items":[{"label":"AI Engineering","href":"/en/career-programs/ai-engineering"},{"label":"AI Fluency","href":"/en/career-programs/ai-fluency"},{"label":"AI Flex","href":"/en/career-programs/ai-flex"},{"label":"Data Science and Machine Learning with AI","href":"/en/career-programs/data-science-ml"},{"label":"Cybersecurity","href":"/en/career-programs/cybersecurity"},{"label":"Full Stack with AI","href":"/en/career-programs/full-stack"}],"items_per_column":8},{"title":"Locations","items":[{"label":"Miami","href":"/en/location/miami-usa"},{"label":"Orlando","href":"/en/location/orlando-usa"},{"label":"Toronto","href":"/en/location/toronto-canada"},{"label":"Madrid","href":"/en/location/madrid-spain"},{"label":"Barcelona","href":"/en/location/barcelona-spain"},{"label":"Valencia","href":"/en/location/valencia-spain"},{"label":"Málaga","href":"/en/location/malaga-spain"},{"label":"Chile","href":"/en/location/santiago-chile"},{"label":"Colombia","href":"/en/location/bogota-colombia"},{"label":"Mexico","href":"/en/coding-campus/coding-bootcamp-mexico"},{"label":"Costa Rica","href":"/en/location/costa-rica"},{"label":"Venezuela","href":"/en/location/caracas-venezuela"},{"label":"Argentina","href":"/en/coding-campus/coding-bootcamp-argentina-buenos-aires"},{"label":"Ecuador","href":"/en/location/quito-ecuador"},{"label":"Uruguay","href":"/en/location/montevideo-uruguay"},{"label":"Panama","href":"/en/location/panamacity-panama"},{"label":"Bolivia","href":"/en/location/lapaz-bolivia"},{"label":"Portugal","href":"/en/location/lisbon-portugal"},{"label":"Berlin","href":"/en/location/berlin-germany"}]},{"title":"For Companies","items":[{"label":"4Geeks For Companies","href":"/en/partners"},{"label":"Talent","href":"https://www.notion.so/4geeksacademy/Talent-Pipeline-4Geeks-Academy-ef91aba17f9c4964bf7972396d190bdf"}]}],"socials":[{"name":"Linkedin","icon":"linkedin","link":"https://www.linkedin.com/school/4geeksacademy/"},{"name":"Facebook","icon":"facebook","link":"https://www.facebook.com/4GeeksAcademy"},{"name":"Twitter","icon":"x-logo","link":"https://twitter.com/4GeeksAcademy"},{"name":"Instagram","icon":"instagram","link":"https://www.instagram.com/4GeeksAcademy"}],"legal_links":[{"label":"Privacy Policy","href":"/en/privacy-policy"},{"label":"Cookies","href":"/en/cookies"},{"label":"Terms and Conditions","href":"/en/terms-conditions"}],"subscribe_text":"Subscribe for more","copyright_text":"4Geeks Academy. All rights reserved."}}}},{"queryKey":["/api/content-types"],"data":[{"name":"program","label":"Program","directory":"programs","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","bc_slug","job_role"],"field_mapping_keys":["slug","title","bc_slug","job_role","valid_lead_form_option"],"url_pattern":{"en":"/en/career-programs/:slug","es":"/es/programas-de-carrera/:slug"},"locale_key":null,"static_entry_count":9,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"location","label":"Location","directory":"locations","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug","name","latitude","longitude","city"],"field_mapping_keys":["slug","name","city","country","country_code","region","default_language","phone","address","latitude","longitude","timezone","available_programs"],"url_pattern":{"en":"/en/location/:slug","es":"/es/ubicacion/:slug"},"locale_key":null,"static_entry_count":36,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"landing","label":"Landing","directory":"landings","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title","locale"],"url_pattern":{"default":"/landing/:slug"},"locale_key":null,"static_entry_count":32,"database_entry_count":null,"layout":{"menu":{"top":"logo-only","bottom":null}}},{"name":"page","label":"Page","directory":"pages","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["slug","title"],"url_pattern":{"en":"/en/:slug","es":"/es/:slug"},"locale_key":null,"static_entry_count":49,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"blog","label":"Blog","directory":"blog","has_database":false,"database_slug":null,"single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","status","category","tags","lang","content","downloadable"],"url_pattern":{"en":"/en/blog/:category/:slug","es":"/es/blog/:category/:slug"},"locale_key":"locale","static_entry_count":227,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"downloadable","label":"Downloadable","directory":"downloadable","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","pdf_url"],"url_pattern":{"en":"/en/downloadable/:slug","es":"/es/descargable/:slug"},"locale_key":"locale","static_entry_count":4,"database_entry_count":null,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"outcome-report","label":"Outcome-report","directory":"outcome-report","has_database":false,"database_slug":null,"single_template":false,"has_field_mapping":false,"unique_fields":["slug"],"field_mapping_keys":[],"url_pattern":{"en":"/en/outcomes-report/:slug","es":"/es/informe-de-resultados/:slug"},"locale_key":null,"static_entry_count":1,"database_entry_count":null,"layout":{"menu":{"top":null,"bottom":null}}},{"name":"how-to","label":"How-to","directory":"how-to","has_database":true,"database_slug":"how_to","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","slug","description","image","content","updated_at","technologies"],"url_pattern":{"en":"/en/how-to/:slug","es":"/es/how-to/:slug"},"locale_key":"language","static_entry_count":11,"database_entry_count":114,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}},{"name":"interactive-exercise","label":"Interactive-exercise","directory":"interactive-exercise","has_database":true,"database_slug":"interactive-exercises","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","category","tags","content","category_name","learnpack_url","interactive","video","difficulty","duration","manifest","language"],"url_pattern":{"en":"/en/interactive-exercise/:slug","es":"/es/interactive-exercise/:slug"},"locale_key":"language","static_entry_count":0,"database_entry_count":72,"layout":{"menu":{"top":"main-navbar","bottom":null}}},{"name":"lesson","label":"Lesson","directory":"lesson","has_database":true,"database_slug":"lesson","single_template":true,"has_field_mapping":true,"unique_fields":["slug"],"field_mapping_keys":["title","description","published_at","category","tags","content","is_featured"],"url_pattern":{"en":"/en/lesson/:slug","es":"/es/lesson/:slug"},"locale_key":"language","static_entry_count":1,"database_entry_count":0,"layout":{"menu":{"top":"main-navbar","bottom":"main-footer"}}}]},{"queryKey":["/api/image-registry"],"data":{"presets":{"hero-wide":{"aspect_ratio":"16:9","widths":[320,480,640,720,960,1280,1920],"quality":85,"description":"Full-width hero images"},"hero-tall":{"aspect_ratio":"9:16","widths":[360,480,640],"quality":85,"description":"Vertical hero images for mobile-style content"},"card":{"aspect_ratio":"4:3","widths":[320,480,640],"quality":80,"description":"Standard card thumbnails"},"card-wide":{"aspect_ratio":"16:9","widths":[320,480,640],"quality":80,"description":"Wide card thumbnails"},"avatar":{"aspect_ratio":"1:1","widths":[32,64,128,256],"quality":85,"description":"Profile pictures and avatars"},"logo":{"aspect_ratio":null,"widths":[32,64,120,240],"quality":90,"description":"Company logos, preserves original aspect ratio"},"icon":{"aspect_ratio":"1:1","widths":[32,64,128],"quality":90,"description":"Small icons and badges"},"full":{"aspect_ratio":null,"widths":[640,960,1280,1920],"quality":85,"description":"Full-size images, preserves original aspect ratio"}},"images":{"4geeks-devs-logo-1763162063433":{"src":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433.png","alt":"Image: 4geeks-devs-logo_1763162063433","focal_point":"center","tags":["logo"],"usage_count":0,"hash":"25422248ede1db8734e27ad0c5d3d67b6e7df20a60911995b5de0d50e6048ec9","width":359,"height":82,"preset":["logo"],"widths_generated":[32,64,120,240],"format":"webp","srcset":[{"w":32,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-32w.webp"},{"w":64,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-64w.webp"},{"w":120,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-120w.webp"},{"w":240,"url":"https://storage.googleapis.com/4geeks-academy-website/media/4geeks-devs-logo_1763162063433-240w.webp"}]}},"tagDefinitions":{"hero":{"label":"Hero","description":"Full-width hero or banner images used in page headers","presets":["hero-wide","hero-tall"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["hero.image","hero.background_image","hero.media.src"],"component_keys":["hero","hero_showcase","hero_singleColumn","hero_twoColumn","hero_productShowcase"],"filename_patterns":["hero","banner","header-bg"],"aspect_ratio_range":{"min":1.5,"max":3}}},"logo":{"label":"Logo","description":"Company or partner logos, typically wide and short","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["logo","partner_logo","brand_logo"],"component_keys":["partners","trust_badges"],"filename_patterns":["logo","brand","company"],"aspect_ratio_range":{"min":1,"max":6}}},"avatar":{"label":"Avatar","description":"Profile pictures, headshots, or user avatars","presets":["avatar"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["avatar","profile_image","headshot","testimonial.image"],"component_keys":["testimonials","team","staff"],"filename_patterns":["avatar","headshot","profile","portrait"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"card":{"label":"Card","description":"Thumbnails used in card layouts and grids","presets":["card","card-wide"],"srcset_widths":[320,480,640],"detection":{"yaml_fields":["card.image","thumbnail"],"component_keys":["cards","grid","features"],"filename_patterns":["card","thumb","thumbnail"],"aspect_ratio_range":{"min":0.75,"max":2}}},"icon":{"label":"Icon","description":"Small icons, badges, or UI elements","presets":["icon"],"srcset_widths":[32,64,128],"detection":{"yaml_fields":["icon","badge_icon"],"component_keys":["icons","features"],"filename_patterns":["icon","ico","symbol"],"aspect_ratio_range":{"min":0.8,"max":1.2}}},"photo":{"label":"Photo","description":"General photographs of people, places, or events","presets":["full","card"],"srcset_widths":[640,960,1280,1920],"detection":{"yaml_fields":["image","photo"],"component_keys":["gallery","about"],"filename_patterns":["photo","campus","classroom","event"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"badge":{"label":"Badge","description":"Award badges, certification marks, or trust seals","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["badge","certification","seal"],"component_keys":["badges","awards","certifications"],"filename_patterns":["badge","seal","certification","cert"],"aspect_ratio_range":{"min":0.6,"max":1.6}}},"partner":{"label":"Partner","description":"Partner organization logos and images","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["partner.logo","partner_image"],"component_keys":["partners","collaborators"],"filename_patterns":["partner","sponsor","university","college"],"aspect_ratio_range":{"min":1,"max":5}}},"press":{"label":"Press","description":"Press and media mentions, publication logos","presets":["logo"],"srcset_widths":[120,240],"detection":{"yaml_fields":["press_logo","publication"],"component_keys":["press","media_mentions"],"filename_patterns":["press","media","news","forbes","newsweek","fortune"],"aspect_ratio_range":{"min":1,"max":5}}},"illustration":{"label":"Illustration","description":"Illustrations, diagrams, or infographics","presets":["full","card"],"srcset_widths":[320,640,960],"detection":{"yaml_fields":["illustration","diagram"],"component_keys":["features","how_it_works"],"filename_patterns":["illustration","diagram","infographic","graphic"],"aspect_ratio_range":{"min":0.5,"max":2.5}}},"testimonial":{"label":"Testimonial","description":"Images associated with student or alumni testimonials","presets":["avatar","card"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["testimonial.image","review.image"],"component_keys":["testimonials","reviews","success_stories"],"filename_patterns":["testimonial","review","success"],"aspect_ratio_range":{"min":0.8,"max":1.5}}},"team":{"label":"Team","description":"Staff, instructor, or team member photos","presets":["avatar","card"],"srcset_widths":[128,256,480],"detection":{"yaml_fields":["staff.image","instructor.image","team.image"],"component_keys":["team","staff","instructors"],"filename_patterns":["team","staff","instructor","teacher","mentor"],"aspect_ratio_range":{"min":0.7,"max":1.5}}},"award":{"label":"Award","description":"Award images, accolades, or recognition marks","presets":["icon","logo"],"srcset_widths":[64,128,256],"detection":{"yaml_fields":["award","accolade"],"component_keys":["awards","recognition"],"filename_patterns":["award","accolade","recognition","prize","course-report","switchup"],"aspect_ratio_range":{"min":0.6,"max":1.6}}}}}},{"queryKey":["navigation-eager-manifest"],"data":{"version":1,"generatedAt":"2026-08-06T05:37:07.633Z","defaultEagerCount":3,"paths":{"/":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/apply":{"eager":[["hero","singleColumn"],["apply_form","default"],["breadcrumb","default"]],"leadForm":true},"/en/awards":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/en/blog":{"eager":[["list_cards","default"]]},"/en/career-programs/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/en/career-programs/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/en/career-programs/cybersecurity":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/data-science-ml":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/career-programs/full-stack":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/en/contact-us":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/en/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/en/financials":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/en/geekforce-career-support":{"eager":[["hero","productShowcase"],["graduates_stats","default"],["career_support_explain","default"]]},"/en/geekpal-support":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/en/geeks-vs-others":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/en/graduates-and-projects":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/en/home":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/en/job-guarantee":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["graduates_stats","fullBleed"]]},"/en/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/location/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/barcelona-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/berlin-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/dublin-ireland":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/hamburg-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/lisbon-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/malaga-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/mexicocity-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/milan-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/munich-germany":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/newyork-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/panamacity-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/remote":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rest-of-europe":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/rome-italy":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/location/valencia-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/en/online-platform":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/outcomes":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/en/partners":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/en/payment-component":{"eager":[["enrollment_selector","default"]]},"/en/press":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/en/privacy-policy":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/program-comparison":{"eager":[["hero","orbit"],["comparison_table","default"]]},"/en/rigobot-ai-coding-mentor":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/en/scholarships":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/en/terms-conditions":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/en/testimonials":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/en/the-academy":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/en/upcoming-dates":{"eager":[["dynamic_table","comparison"],["cta_banner","form"],["sticky_cta","default"]],"leadForm":true},"/en/work-with-us":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/alianzas":{"eager":[["hero","simpleTwoColumn"],["modal","default"],["features_quad","default"]],"leadForm":true},"/es/apply":{"eager":[["hero","singleColumn"],["apply_form","default"]],"leadForm":true},"/es/becas":{"eager":[["hero","simpleTwoColumn"],["features_grid","cardHeader"],["partnership_carousel","split-card"]]},"/es/blog":{"eager":[["list_cards","default"]]},"/es/contactanos":{"eager":[["hero","singleColumn"],["contact_us_info","default"],["sticky_cta","default"]],"leadForm":true},"/es/cookies":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/egresados-y-proyectos":{"eager":[["hero","singleColumn"],["modal","default"],["project_showcase","default"]],"leadForm":true},"/es/faq":{"eager":[["faq_editor","default"],["sticky_cta","default"]],"leadForm":true},"/es/financiaciones":{"eager":[["hero","productShowcase"],["features_grid","stats-text"],["syllabus","default"]]},"/es/geeks-vs-otros":{"eager":[["hero","simpleTwoColumn"],["comparison_table","default"],["two_column_accordion_card","image_background"]]},"/es/inicio":{"eager":[["hero","credibility"],["graduates_stats","default"],["features_grid","stats-charts"]]},"/es/learnpack":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/payment-component":{"eager":[["enrollment_selector","default"]]},"/es/plataforma-online":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/premios":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["cta_banner","form"]],"leadForm":true},"/es/prensa":{"eager":[["hero","singleColumn"],["list_press_mentions","default"],["value_proof_panel","default"]]},"/es/programas-de-carrera/ai-engineering":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/programas-de-carrera/ai-flex":{"eager":[["hero","course"],["awards_marquee","default"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ai-fluency":{"eager":[["hero","course"],["awards_marquee","default"],["features_quad","default"]],"leadForm":true},"/es/programas-de-carrera/ciberseguridad":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/ciencia-de-datos-ml":{"eager":[["breadcrumb","default"],["hero","course"],["modal","default"]],"leadForm":true},"/es/programas-de-carrera/desarrollo-full-stack":{"eager":[["breadcrumb","default"],["hero","course"]]},"/es/programas-de-carrera/ingenieria-ia":{"eager":[["hero","course"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/proximas-fechas":{"eager":[["dynamic_table","comparison"],["sticky_cta","default"]],"leadForm":true},"/es/resultados":{"eager":[["hero","simpleTwoColumn"],["vertical_bars_cards","default"]]},"/es/rigobot":{"eager":[["hero","simpleTwoColumn"],["article","default"],["faq","default"]]},"/es/sobre-la-academia":{"eager":[["hero","singleColumn"],["split_cards","primary-left"],["features_quad","laptopEdge"]]},"/es/soporte-geekpal":{"eager":[["hero","productShowcase"],["banner","default"],["human_and_ai_duo","default"]]},"/es/soporte-profesional-geekforce":{"eager":[["hero","productShowcase"],["career_support_explain","default"],["graduates_stats","default"]]},"/es/terminos-y-condiciones":{"eager":[["article","default"],["sticky_cta","default"]],"leadForm":true},"/es/testimonios":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["testimonials_grid","default"]]},"/es/trabaja-con-nosotros":{"eager":[["hero","singleColumn"],["two_column","default"],["faq","default"]]},"/es/trabajo-garantizado":{"eager":[["hero","simpleTwoColumn"],["graduates_stats","fullBleed"],["course_selector","solid"]]},"/es/ubicacion/atlanta-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/austin-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/barcelona-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/berlin-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/bogota-colombia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/buenosaires-argentina":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/caracas-venezuela":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/chicago-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-mexico":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/ciudad-de-panama":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/costa-rica":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dallas-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/dublin-irlanda":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/hamburgo-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/houston-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lapaz-bolivia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lima-peru":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/lisboa-portugal":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/losangeles-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/madrid-spain":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/malaga-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/miami-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/milan-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/montevideo-uruguay":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/munich-alemania":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/nueva-york-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/orlando-usa":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/quito-ecuador":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/remoto":{"eager":[["hero","singleColumn"],["banner","default"],["two_column","default"]]},"/es/ubicacion/resto-de-europa":{"eager":[["hero","singleColumn"],["modal","default"],["awards_marquee","default"]],"leadForm":true},"/es/ubicacion/roma-italia":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/santiago-chile":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/toronto-canada":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]},"/es/ubicacion/valencia-espana":{"eager":[["hero","singleColumn"],["awards_marquee","default"],["banner","default"]]}}}}],"locale":"en"}