• Thursday , 9 April 2020

#28 Regular Expressions in JavaScript Part 1

Code Canyon



What Is a Regular Expression?
A regular expression is a sequence of characters that forms a search pattern.
When you search for data in a text, you can use this search pattern to describe what you are searching for.
A regular expression can be a single character or a more complicated pattern.
Regular expressions can be used to perform all types of text search and text replace operations.
A regular expression in JS is an object that describes a pattern of characters.
The JavaScript RegExp class represents regular expressions, and both String and RegExp define methods that use regular expressions to perform powerful pattern-matching and search-and-replace functions on the text.
Video by – Tanmay Sakpal
Simple Snippets Channel link – https://www.youtube.com/simplesnippets

Original source

3d Ocean

Related Posts

34 Comments

  1. Puneet Sagar
    March 26, 2020 at 07:03

    Mera invalid user pe bhi action event work kr Raha hai

  2. Viajy Kumar
    March 26, 2020 at 07:03

    How stupid is this
    Ur using var that's the first sign that Ur fresher
    People stop watching videos of idiots who are running YouTube channels just for money sake no experience AT all …
    Nd your is yukkk are you from village

  3. Isidro Garcia Villanueva
    March 26, 2020 at 07:03

    why you dont traduce all the playlist?????

  4. Vijayakumar Raja
    March 26, 2020 at 07:03

    How to store the input data into a file

  5. sebastian iuga
    March 26, 2020 at 07:03

    Nice video but jeez man but some subtitles on!

  6. Kartik Thakur
    March 26, 2020 at 07:03

    how to remove the invalid text after we put a correct info

  7. Sparsh Gupta
    March 26, 2020 at 07:03

    Good example
    Simple explanation
    Awesome

  8. zaid khan
    March 26, 2020 at 07:03

    nice explanation it is like playing pubg without lag

  9. Pravin Nichal
    March 26, 2020 at 07:03

    Please make video for English ,your English is amazing

  10. ahad khan
    March 26, 2020 at 07:03

    the (invalid username) lalabel is not working. I removed the form action and kept it as simple form. how to debug this issue.

  11. nicodemus amboye
    March 26, 2020 at 07:03

    very informative!

  12. hashir ct
    March 26, 2020 at 07:03

    here what is the type of regx

  13. CodeCompete Repeat
    March 26, 2020 at 07:03

    ohh..just 7 more to go:)

  14. CodeCompete Repeat
    March 26, 2020 at 07:03

    just half way to go:)

  15. Shivam Kapoor
    March 26, 2020 at 07:03

    Sir your videos are very helpful plz also make series on es6

  16. Divy Patel
    March 26, 2020 at 07:03

    Bro this video has no dislikes🤔🤔wow

  17. somya khare
    March 26, 2020 at 07:03

    HI @Telusko ,i m watching ur videos regularly these are really good but i m facing an issue regarding alert function in visual code is "Function is not working" not for this video only but for previous videos also.I am coding in visual code only
    <html>

    <head>

    <title>Regular expression page</title>

    <script src='text/javascript'>

    /*this program related to show regular expression powerful pattern matching

    Regular expressions are case sensitive

    for testing regular expression use 'regex101' website

    regular expression in JS treating as object

    */

    function validate(){

    var uname=document.getElementById("uname").value;

    var regx=/F101/;

    if(regx.test(uname)){ //this is one way to use regular expression ,here test is used to check

    //the expression in regx is in textbox or not

    alert("valid employee name");

    }

    else{

    window. alert("invalid employee name");

    document.getElementById("lbl") .style.visibility="visible" ;

    }

    }

    </script>

    </head>

    <body>

    <form >

    <input id="uname" type="text" placeholder="employee id"/><br>

    <label id="lbl" style="color :brown; visibility:hidden "><br>Invalid Employee name</label><br>

    <button type="submit" onclick="validate();">submit</button>

    </form>

    </body>

    </html>
    please help to resolve this issue

  18. anik saha
    March 26, 2020 at 07:03

    please give us the code in description and the website link

  19. T. Avinash Reddy
    March 26, 2020 at 07:03

    Perfection,! Well bro👏,
    And It's better to have next video link too,in the description…!

  20. bhushan kulkarni
    March 26, 2020 at 07:03

    dear tanmay i want u to upload html5,css3,bootstrap & jquery videos

  21. Aravind Myd
    March 26, 2020 at 07:03

    Great Video bro. Subscribed to SImple snippets also 🙂

  22. Chanel OVO
    March 26, 2020 at 07:03

    Thank u tanmay brother for making such a useful video. Plzz try to make video on Nodejs

  23. Ritushree Shet
    March 26, 2020 at 07:03

    it it like since 'i' is for case insensitive, 'g' is for global

    and if so can we use both? and how?

  24. Devam Shah
    March 26, 2020 at 07:03

    Sir make a sires on php

  25. Akhilesh Yaduwanshi
    March 26, 2020 at 07:03

    Nice tutorial Tanmay, bhai please plan coming videos tutorial on "how to make http calls (GET/POST) via JS and shown data with the help of HTML". It will be very helpful and much appreciated by all.

  26. CHINMAY DAS
    March 26, 2020 at 07:03

    Good series going on..it will be better if you sir explain topics with more and more examples..thank you sir….

  27. Abhigyan Kumar
    March 26, 2020 at 07:03

    How to access a CSS file, not the style attribute or tags with JavaScript?

  28. Technology concepts
    March 26, 2020 at 07:03

    Sir amazing explaination sir

  29. abdullah younis
    March 26, 2020 at 07:03

    Please upload videos on django

  30. Devam Shah
    March 26, 2020 at 07:03

    Sir when a new video is uploaded

  31. Sudhir Laykar
    March 26, 2020 at 07:03

    Could you please suggest any book for js ?

  32. vineeth kumar
    March 26, 2020 at 07:03

    Why are we not sent to "message.html" page which is mentioned in the action attribute of form tag ??

    Could you please explain me ☺️☺️☺️

  33. Jagdish Reddy
    March 26, 2020 at 07:03

    Sir when you start es6 part in JavaScript

  34. Kishor K S
    March 26, 2020 at 07:03

    I am first

Leave A Comment

You must be logged in to post a comment.