@John: Thanks for the link on regex and the list of regex functions; the information was very helpful.
Sean Corfield wrote:Dan,
If you can provide a bit more background on what you're thinking of trying, we can give you better pointers. Is it just RegEx? If so, John's answer should help. Is is also how to read lines from a file? Jump on clojuredocs.org and search for reader, with-open, line-seq and see if that helps.
Firstly, thanks for the link to clojuredocs.org and the 'reader', 'with-open', 'line-seq' search terms.
No, it's not just RegEx, but rather
reading from a file, regex, and writing to a file.
I think it's best, as you suggested, for me to elaborate on what I'm trying to do.
I have a log file, in xml format, that I want to parse for 'author' data. I want to then write this parsed data to another file. For example, assuming the following xml log file:
I want to generate the following file (the email domain is the same for all authors):
dking = dking@emailaddress.com
jdoe = jdoe@emailaddress.com
Thanks for the help.