Something along the line of: my $uuid ;
if ( ! /\[uuid\s+([^\]]+)/ ) { # if no hit then do something # warn or die depending on what you expect } $uuid = $1; If you want $_ then you can do $_ = $uuid; Wags ;) -----Original Message----- From: David Samuelsson (PAC) [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 05:12 To: '[EMAIL PROTECTED]' Subject: Regexp more regexps.. $_ comes in this form: servername:D:\CC_Storage\Views\EUSDNKG_Madeleine_Tae68_view.vws [uuid 74a6b3b0.d1cd11d4.896e.00:b0:d0:83:b4:9b] i want $_ to be just the uuid number that is: 74a6b3b0.d1cd11d4.896e.00:b0:d0:83:b4:9b how do i get that the easiest way? all $_ are the same they are all within brackets [text here variables, exept . and :] //Dave -- 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]