Good day; I have the following strings: > root Wed Aug 22 04:44:59 2001 DLs <snip> >I want three things: > >user, the entire date, the state. What is separating these attributes? A constant number of spaces, or a tab? If so, it might be easier to use the "split" function. ($user, $date, $state) = split (/\t/, $line); ## or if, say, 4 spaces are separating them, change \t to \s{4} HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- regex: can't match pattern... dang GoodleafJ
- RE: regex: can't match pattern... dang Carl Rogers
- RE: regex: can't match pattern... dang Rob Dixon
- Re: regex: can't match pattern... dang Michael Fowler
- Re: regex: can't match pattern... dang John Way
- Re: regex: can't match pattern... dang John W. Krahn
- RE: regex: can't match pattern... dang...further John Moylan