> Hi there, > > What perl function can i use to extract a > sub-string from a string. > >
$string = 'myfile.txt'; $string =~ m/^(\w+)\.txt$/; print $1; HTH DMuey > I have "myfile.txt", and i only want to print > "myfile" to the screen , how can i do it ? > > > Thanks. > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design > software http://sitebuilder.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]