abstract:
My attempt in CF8 works most of time but if the firstname or lastname has a space in it such as John Paul as a firstname, then it wont work:
Code:
Firstname entry: #REReplace("Form.myName",",\w","","ALL")#<br>
Lastname entry: #REReplace("Form.myName","\w,","","ALL")#
I have a form field name coming in from someone else's page with lastname,firstname format such as this: Jones,Joe
I need to manipulate it to look like this:
Firstname entry: Joe
Lastname entry: Jones
My attempt in CF8 works most of time but if the firstname or lastname has a space in it such as John Paul as a firstname, then it wont work:
Code:- Firstname entry: #REReplace("Form.myName",",\w","","ALL")#<br>
- Lastname entry: #REReplace("Form.myName","\w,","","ALL")#
Copy Code |