• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

email list separated into emails and names

New Here ,
Feb 05, 2008 Feb 05, 2008

Copy link to clipboard

Copied


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?
TOPICS
Advanced techniques

Views

160

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2008 Feb 05, 2008

Copy link to clipboard

Copied

LATEST
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
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation