Added: 3 years ago
From: nptelhrd
Views: 24,620
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • no sound come please do something

  • I cont hear voice from this video... Can you correct it ?

  • I cont hear voice from this video... Can you correct it ?

  • I cont hear voice from this video... Can you correct it ?

  • I was right. IITs are overrated. I can't believe an IIT professor can be wrong. (about REGEX in this video - in Ram and Shyam examples).

  • print "$1 $2\n";this will print out Ram and

  • $s=~/^(\w+)\s+(\w+)/;

  • $s=~/(\w+)$/;

    Sir, this will print out honest

  • my $str="Ram and shyam are honest";

    $str=~/^(\w+)/;

    print "$1\n";

    Sir, this will print out Ram

  • @arunanirudhan yes it will print only the first word, you can change the regex as /^(\w+\s+\w+)$/ , it will print the full line.

  • @skmarwat OR /^(\w\s)+$/ i think this will also work, i havnt test it right now but it will.

  • The teacher lacks the basic concept of perl... Perl is GREEDY in nature. His examples are wrong, pl don't listen to this video.

  • @arunanirudhan : you need to correct your concepts ... regex(s) are greedy and not perl ... does that make sence !!!

  • i can not hear voice in this lecture ... can you please update the video again. Thanks

  • I thought regular expression was greedy in pattern matching(in java it is ) $String = "Rama and Sham are  honest9"; $String =~ /(\w+$)/; print $1; This is the code i ran it came out as honest9 you explanation says it "9t" i couldn't get adding an integer to increasing the ascii value of the string either? $a = "one"; $b = $a+1; (or) $b = ($a+1); or printing it in " " or ' ' any combination didn't work its always returning "1"
  • fail at 1:24!

    LOL....

    Practical Reporting and Extraction Language...

    that would make PREL :P

  • @timtico Fuck u!

  • The thing I hate the most about writing Perl scripts is waiting for them to finish the task I've given them. Be direct, but is this the way of scripting, my own control flow, or the language? There is nothing more frustrating than trying to nail the right regular expression.

  • awesome, just what I was looking for, more information of search regexp.

  • Pretty good overall. The first non-regex example had a bug (the every and body should be separated by a space for the match to work). The discussion of the *,+ and ? was a bit confusing. I thought these were quantifiers for whatever immediately preceded them.. \d+ is one or more digits etc. and \d{2} is exactly 2 repetitions whereas the discussion did not make the association clear (it suggested these were repetitions of general characters).

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more