Skip to main content
Participant
January 5, 2009
Question

text extraction

  • January 5, 2009
  • 1 reply
  • 258 views
I have a text file (unix format, line break \n):

email:a@a.a
tel:1234
fax:5678

pls advise any code snippet that could easily extract email (result=a@a.a) or tel (result=5678) or fax (result=5678)?
    This topic has been closed for replies.

    1 reply

    Inspiring
    January 5, 2009
    for each line you can use listlast() with a colon delimiter

    You can also treat the entire file as a list. Use the asc() function to see what /n ends up as.