Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Lecture -23 PERL-Part III

Loading...

Sign in or sign up now!
24,689
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 7, 2008

Lecture Series on Internet Technologies by Prof. I. Sengupta, Department of Computer Science Engineering, IIT Kharagpur. For more details on NPTEL visit http://nptel.iitm.ac.in

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

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

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

    print "$1\n";

    Sir, this will print out Ram

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

see all

All Comments (25)

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

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

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

  • 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 ?

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

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