in reply to Building an XML File from text
Deates would be done in a similar approach replacing \d+ with whatever a date looks like. I think there are some loose date modules you might can still some RE's from.$text =~ s/^(|.*\s)(\d+)(\s.*|)$/$1<number>$2<\/number>$3/ # The expression looks like the following # beginning of line followed by either nothing or at least # one space which neighbors a set of digits followed by # # either nothing or at least a space and the end of the line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Building an XML File from text
by pike (Monk) on Nov 20, 2001 at 20:25 UTC | |
by mirod (Canon) on Nov 20, 2001 at 21:04 UTC |