[RndTbl] Wrong time of night for doing regex?
Hartmut W Sager
hwsager at marityme.net
Sat Jan 4 13:02:07 CST 2020
> What might be easier (and more readable) is if each line has a fixed
length from the beginning, you can match perhaps a little more clearly by
doing something like s/^(.{23}) (\d),/\1 0\2/
No, due to great sloppiness in the original data (and two sources), the
line lengths vary considerably, with/without commas in a few places,
variable multi-space sequences, etc.
Hartmut W Sager - Tel +1-204-339-8331
On Sat, 4 Jan 2020 at 10:58, Mark Campbell <nitrodist at gmail.com> wrote:
> _______________________________________________
> [... delered ...]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://muug.ca/pipermail/roundtable/attachments/20200104/e50f3be5/attachment-0001.html>
More information about the Roundtable
mailing list