Quantifiers - RegEx Beginner Tutorial

Опубликовано: 04 Июль 2024
на канале: Height Above Sea Level
93
4

Quantifiers in regular expressions determine how many characters are matched. If you're matching too few or too many characters, you'll need to learn how to use quantifiers whether for regular expressions in C#, JavaScript, Python, or Java.

The approach is the same in multiple programming languages, and the main regex quantifiers you need to know are the + quantifier, * quantifier, ? quantifier, and {n} quantifier.

Some variations of these can be considered greedy quantifiers while others are lazy (non-greedy) quantifiers, but that's a bit too advanced for this beginner regex tutorial, so I'll leave you with a link to a regex cheat sheet if you'd like to learn more about them.

https://developer.mozilla.org/en-US/d...

I use regex101 to test my regex patterns, but you can use any online regex tester that meets your needs.

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

Subscribe to the channel ✔️
   / @heightabovesealevel  

Become a member to access exclusive perks.
   / @heightabovesealevel  

CUSTOM SASUKE THEME for Visual Studio, exclusive content, and more on Patreon.
  / heightabovesealevel  

Click the 🔔 to turn on notifications so you don't miss anything.

Come hang out on DISCORD!
Discord:   / discord  

Other awesome videos worth checking out:

How to Match Numbers Using Regular Expressions
   • How to Match Numbers (Phone Number Ex...  

How to Match Special Characters Using Regular Expressions
   • How to Match Special Characters (Emai...  

A tip is always appreciated :)
https://streamelements.com/avatarvick...

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

Timestamps:

00:00 - Why You Need Quantifiers in Regular Expressions
00:58 - (+) Quantifier
02:06 - (*) Quantifier
03:07 - (?) Quantifier
03:47 - {n} Quantifier
04:57 - (+) Quantifier Visual Studio Demo
06:00 - Claim Your Custom Visual Studio Theme
06:37 - (*) Quantifier Visual Studio Demo
07:05 - (?) Quantifier Visual Studio Demo
07:36 - {n} Quantifier Visual Studio Demo
08:47 - Quick Recap Of Everything
09:17 - What's Next?

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

Here's my other social media - amazing stuff over there too!

🎮 TWITCH ➼   / avatarvick  
📷 INSTAGRAM ➼   / heightabovesealevel  
😂 TWITTER ➼   / vicktor_oti   (VICKTA)

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

🎵 Music provided by:

StreamBeats by Harris Heller
https://www.streambeats.com/

Certain gifs courtesy of tenor.com.

Certain pictures courtesy of freepik.com.

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

#programming #regex #regularexpressions

Thank you for watching.
Subscribe, and I'll see you in the next video.


Смотрите видео Quantifiers - RegEx Beginner Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Height Above Sea Level 04 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9 раз и оно понравилось людям.