Got It!! Thanks,
Jerry -----Original Message----- From: Jerry Preston [mailto:[EMAIL PROTECTED] Sent: Sunday, August 22, 2004 9:04 PM To: [EMAIL PROTECTED] Subject: Regex on a string Hi! I know this is simple, but I am not getting any where. I want to pull a group of letters, X1891 from the following: ZP5DX1891J10R01 /X\w{4}/ One thing to note is the number of characters before and after the X1891 is always changes. Thanks, Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>