Hi You can try the following:
$line = "insert_job: DUKS_rtcf_daily_log_purge job_type: c"; ($rest) = $line =~ m/(\W\w.*)/; Regards Robert -----Original Message----- From: Woz [mailto:[EMAIL PROTECTED]] Sent: 25 October 2001 11:17 To: [EMAIL PROTECTED] Subject: Regular expression help!! Hi, I'm relatively new to the wonders of Perl programming and I've yet to quite get my head around regular expressions. I'm attempting to generate a search and replace expression that will turn the following string insert_job: DUKS_rtcf_daily_log_purge job_type: c into DUKS_rtcf_daily_log_purge job_type: c i.e. remove from the beginning of the line up the space following the first : All my efforts so far remove upto the second : though and leave just 'c'. Any ideas? Any help much appreciated! Thanks, Warren
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]