2009 Nov 27 8:18 AM
I need a RegEx for splitting firstname and lastname from a name
a®
2009 Nov 27 8:35 AM
Sometimes first name and last name will come with , and some other speical symbols
a®
2009 Nov 27 8:27 AM
Hi,
Does split statement works for your requirement? ( split at var1 at space) ?
Regards,
Swarna Munukoti.
2009 Nov 27 8:35 AM
Sometimes first name and last name will come with , and some other speical symbols
a®
2009 Nov 27 8:43 AM
Hello,
So you need to split basically at "Special Characters"?
Can you try with :punct: ? It basically considers these characters:
! ' # S % & ' ( ) * + , - . / : ; < = > ? @ [ / ] ^ _ { | } ~BR,
Suhas
2009 Nov 27 8:48 AM
Suhas,
I know SPLIT will work in abap , but i am writing javascript in WDA , So i need RegEx.
a®
2009 Nov 27 9:05 AM
2009 Nov 27 9:15 AM
Hi,
How about something like this?
^[(A-Z)(a-z), '-]*
Please note few characters like comma, space, apostrophe, hyphen. You could add any character that you want.
Does this help??
2009 Nov 27 9:19 AM
2009 Nov 27 9:20 AM