| Jarrod Hermer on Thu, 27 Feb 2003 10:27:00 +0200 (SAST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| [Linux dev] Regular Expressions |
Hi All, I was struggling till late last night and still have no simple solution. I have a text file like following: 0831234567 Hi bob 27831234567 Hi Joe 42 2784 789 6541 082.654.4889 some text 084 789 6541 another line of text 2783-123-4567 Hi Doris! What I need to do is separate out the number from the text; currently I am using a very kludge solution that involves a few loops. I am sure this can be done simply using regular expressions but seeing as my knowledge is limited in this regard I was hoping someone out there could give me some assistance. Many thanks, Jarrod