1 Reply Latest reply on Feb 5, 2008 5:32 PM by Newsgroup_User

    email list separated into emails and names

    jqcf Level 1

      How might you code this using a regular expression? I suppose I could use find() to find where the '<' is in the string and then use right to get what's after that and subtract one for the '>'. That's not really as neat though as using a regular expression. Any other ideas on how to code this?
        • 1. Re: email list separated into emails and names
          Level 7
          1) listcontains will not help you find where the < element in your list is
          2) regexp will definitely work
          3) but why use complicated regexp (especially if you do not really know
          complicated regexp) when you can easily use simple CF functions?
          consider your list elements in your main list to be comma-delimited
          lists and use listlast() and listdeleteat() functions with appropriate
          trim() where necessary.

          Azadi Saryev