#28 Regular Expressions in JavaScript Part 1

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ •

  • @amazing-ek2uo
    @amazing-ek2uo 2 роки тому +2

    I like your voice. It's crisp and clear.
    And concerning the content - again crisp and clear.

  • @suyashhandke
    @suyashhandke 4 роки тому +1

    Why are u not getting redirected to msg.html even after entering valid username & then submitting the form?
    Check at 10:55 min !!!
    Pls reply.
    @Simple Snippets
    @Telusko

  • @akhileshyaduwanshi6411
    @akhileshyaduwanshi6411 6 років тому +7

    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.

  • @Mr.Sinha03
    @Mr.Sinha03 4 роки тому +1

    alert box not coming what to do

  • @076-prasanths9
    @076-prasanths9 10 місяців тому

    what about the action tag here, why is not going to "message.html" page after the correct credentials

  • @kartikthakur886
    @kartikthakur886 5 років тому +5

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

  • @Programming-for-all-u2l
    @Programming-for-all-u2l Рік тому

    I believe he has an other UA-cam channel. I watched his data structures and algorithms with C ++. He is far better than my teachers

  • @rajdeeplaha8038
    @rajdeeplaha8038 4 роки тому

    why message.html page is not appear after validate

  • @nainigudla
    @nainigudla 4 роки тому +1

    when i select the input and hit enter it is redirected to the page we want(message.html)
    so how can i resolve this problem?

    • @shreyadeo315
      @shreyadeo315 4 роки тому +1

      try this............ make the button type as button, you prbably have done it of type submit. hope it works :)

    • @taneyasoni
      @taneyasoni 4 роки тому

      @@shreyadeo315 thank u so much.

    • @jv18creator
      @jv18creator 4 роки тому

      @@shreyadeo315 Working fine. Could you explain why was that happening?

    • @shreyadeo315
      @shreyadeo315 4 роки тому +1

      @@jv18creator b'ze in form tag, there is still action = message.html. when we make button of submit type, we tells the form to go to message.html and when we make it of type ,"button ", browser checks onclick event . I guess onclick is not for submit type button, so it completely ignores it.

    • @jv18creator
      @jv18creator 4 роки тому

      @@shreyadeo315 okay...Thanks

  • @animoji4401
    @animoji4401 Рік тому

    When I am manipulating css the home page is redirecting to message page and the css is also not manipulating

  • @swarupadhikary8518
    @swarupadhikary8518 6 років тому +2

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

  • @shubhambhatt2704
    @shubhambhatt2704 Рік тому

    Too the point and crystal clear explanation

  • @ellypally267
    @ellypally267 3 роки тому

    How about if i input "asdE00" ??
    is it valid input ??

  • @ritushreelakshminarayana6891
    @ritushreelakshminarayana6891 6 років тому +1

    it it like since 'i' is for case insensitive, 'g' is for global
    and if so can we use both? and how?

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +5

      Yes we can. write them side by side for eg - var regex = /abc/ig ;

  • @vatsalsingh1384
    @vatsalsingh1384 Рік тому

    why the code is not working now?

  • @vineethkumar2272
    @vineethkumar2272 6 років тому +1

    Why are we not sent to "message.html" page which is mentioned in the action attribute of form tag ??
    Could you please explain me ☺️☺️☺️

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +2

      Its actually because our button is not a submit type button. It is a regular button which is specified in the type attribute. Actually the motto of this video was to just start off with regular expressions and nothing related to form. :)

    • @vineethkumar2272
      @vineethkumar2272 6 років тому

      @@SimpleSnippets got it Bro Tq
      Peace ✌️

  • @isidrogarciavillanueva2576
    @isidrogarciavillanueva2576 4 роки тому

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

  • @thisisalphaomega
    @thisisalphaomega 4 роки тому

    i am unable to use that regx expression

  • @dhawaniprajapati3819
    @dhawaniprajapati3819 4 роки тому

    sir what is that in action message.html file because if i enter that file did not recognize

    • @gagangautam8260
      @gagangautam8260 3 роки тому

      this is a another html file having a message "Welcome"... you can do it by simple html

  • @shashanksv5684
    @shashanksv5684 4 роки тому

    Js is not working in sublime text 3

  • @t.avinashreddy549
    @t.avinashreddy549 6 років тому +2

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

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +1

      Thank you Avinash :-)

    • @kavishshah5586
      @kavishshah5586 4 роки тому

      @@SimpleSnippets My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this

  • @sivac4999
    @sivac4999 2 роки тому

    if(regx.test(uname)) in this condition "test" is predefined method or not brother?

    • @smrpkrl
      @smrpkrl Рік тому

      test is a predefined method

  • @sudhirlaykar88
    @sudhirlaykar88 6 років тому +1

    Could you please suggest any book for js ?

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +4

      I have never studied from books, I dont think you will need a book, you can get everything online buddy :-)

  • @pravinnichal8147
    @pravinnichal8147 5 років тому +1

    Please make video for English ,your English is amazing

    • @SimpleSnippets
      @SimpleSnippets 5 років тому +1

      I have few videos regarding this on my channel Simple Snippets :-)

  • @bhushankulkarni6358
    @bhushankulkarni6358 6 років тому

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

  • @aniksaha5427
    @aniksaha5427 6 років тому

    please give us the code in description and the website link

  • @jagdishreddy1793
    @jagdishreddy1793 6 років тому +1

    Sir when you start es6 part in JavaScript

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +1

      ES6 videos are not really a part of this beginner level basics. I am yet to decide whether to include them or not. Maybe at the very end which could take a month more from now :-)

    • @jagdishreddy1793
      @jagdishreddy1793 6 років тому +2

      @@SimpleSnippets sir please include it will be very helpful...for us

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +1

      Yes but I myself haven't really used it a lot. So not sure about it :-) Still will check up on it :-)

    • @shreekanth348
      @shreekanth348 6 років тому

      @@SimpleSnippets Bro do upload ES6 videos that will help full for us. Am waiting bro.

  • @halimabegum2603
    @halimabegum2603 4 роки тому

    Why message.html page is not executed although action='message.html' is there.?

    • @abdifitahmashquul5735
      @abdifitahmashquul5735 4 роки тому

      look as well you are not doing form validation to submit a form it's regular ex... hope you undrestood

  • @hashirct931
    @hashirct931 5 років тому

    here what is the type of regx

  • @aravindmyd6507
    @aravindmyd6507 6 років тому +5

    Great Video bro. Subscribed to SImple snippets also :)

    • @SimpleSnippets
      @SimpleSnippets 6 років тому +2

      Thank you so much Aravind. Means a lot to me buddy. Do share the channel with your friends too :-)

    • @thetravelman8085
      @thetravelman8085 4 роки тому

      Have also subscribe to all. But we need a series on PHP.

  • @chinmaydas4053
    @chinmaydas4053 6 років тому +5

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

  • @shivamkapoor1827
    @shivamkapoor1827 5 років тому +1

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

  • @TubeIndian125
    @TubeIndian125 5 років тому

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

  • @abdullahyounis9386
    @abdullahyounis9386 6 років тому

    Please upload videos on django

  • @kavishshah5586
    @kavishshah5586 4 роки тому

    My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this

  • @sparshgupta8078
    @sparshgupta8078 5 років тому

    Good example
    Simple explanation
    Awesome

  • @somyakhare5046
    @somyakhare5046 5 років тому

    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

    Regular expression page

    /*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" ;
    }
    }





    Invalid Employee name
    submit


    please help to resolve this issue

    • @srichakrateja6773
      @srichakrateja6773 5 років тому

      you should use instead of
      Here is the code:



      Employee

      function validateEmployee()
      {
      var emp = document.getElementById("employee").value
      var regex = /F101/
      if(regex.test(emp))
      {
      alert("Valid user")
      }
      else
      {
      alert("Invalid user")
      }
      }





      Employee

  • @puneetsagar5014
    @puneetsagar5014 4 роки тому +1

    Mera invalid user pe bhi action event work kr Raha hai

    • @prathibhab3112
      @prathibhab3112 4 роки тому

      I too am facing the same issue. Quickly it redirects to message.html. if I remove action then the page refreshes quickly and I will not be able to see the Invalid user name in both the cases

  • @manjesh6228
    @manjesh6228 4 роки тому

    Can you please give me example code

  • @ankitagaikwad3678
    @ankitagaikwad3678 4 роки тому

    Thank you so much Tanmay

  • @harishkeerthi6697
    @harishkeerthi6697 4 роки тому

    one suggestion : when you make video must provide source code about video

  • @newsmix8659
    @newsmix8659 5 років тому +2

    very informative!

  • @vijayakumarraja9783
    @vijayakumarraja9783 5 років тому

    How to store the input data into a file

    • @gagangautam8260
      @gagangautam8260 3 роки тому

      what type of file are you talking about? can you please ellaborate...!

    • @vijayakumarraja9783
      @vijayakumarraja9783 3 роки тому

      @@gagangautam8260 like word, excel, pdf.

  • @sablala3116
    @sablala3116 4 роки тому

    can you provide source code also

  • @sudhakarverma8452
    @sudhakarverma8452 6 років тому +1

    Sir amazing explaination sir

  • @toodles8397
    @toodles8397 2 роки тому

    THANK YOU 😭😭😭😭

  • @jaffarsharieff8528
    @jaffarsharieff8528 3 роки тому

    Awesome.

  • @sebastianiuga3020
    @sebastianiuga3020 5 років тому +1

    Nice video but jeez man but some subtitles on!

  • @manjesh6228
    @manjesh6228 4 роки тому

    Give that code.

  • @divy-07
    @divy-07 5 років тому +2

    Bro this video has no dislikes🤔🤔wow

  • @35_khanzaid76
    @35_khanzaid76 5 років тому +1

    nice explanation it is like playing pubg without lag

  • @apporvaarya
    @apporvaarya 5 років тому +2

    just half way to go:)

  • @yoho542
    @yoho542 3 роки тому

    Nice man

  • @anurajms
    @anurajms 2 роки тому

    ty

  • @tejasbachhav3921
    @tejasbachhav3921 4 роки тому

    nice

  • @shakib_04
    @shakib_04 4 роки тому

    so helpful

  • @apporvaarya
    @apporvaarya 5 років тому +1

    ohh..just 7 more to go:)

  • @kishorks5960
    @kishorks5960 6 років тому +1

    I am first

  • @pappug5319
    @pappug5319 3 роки тому

    21

  • @kavishshah5586
    @kavishshah5586 4 роки тому

    My page just gets refreshed itself after pressing the OK button of the alert box. Please give me the solution of this

    • @mooventhan110
      @mooventhan110 4 роки тому +1

      Please check did you put "#" in the form action. If not please put it.

    • @shankarstm2884
      @shankarstm2884 3 роки тому

      I think so you have given an Button input as submit so that's the reason. Use type as button