luke2
August 3, 2019, 9:44am
1
Hi Guys,
Just a quick tip for extracting the first and last name with a regex pattern using the :item expression.
Regex pattern:
([^\s]+)
Demo:
Conditions could be used if the person just enters a first name or even if they enter a middle name…
Cheers
13 Likes
So many tips we continue to discover, even after so long! Great, thank you.
2 Likes
luke2
August 3, 2019, 2:36pm
3
Thanks @JohnMark
So many possibilities with regex expressions.
2 Likes
luke2
August 3, 2019, 2:40pm
4
For basic checking middle name or outputting dynamic content based on the input of the user, a condition such as this could also be beneficial:
Using :count or could use is empty
to evaluate result
3 Likes
eren
August 3, 2019, 2:50pm
5
Luke, if we wait a little longer, you’il uncover our genealogy🤣
2 Likes
I will definitely use this in my latest projects.
1 Like
Hi Luke,
Thanks for sharing. But what if the person has 2 names e.g. Simon Peter? or what if the person has Jr. Sr. on their names? e.g. Simon Peter Sandler Smith Jr.
I’m now setting up a registration forms so I’m curious to know about this.
Thank you in advance.
Allan
1 Like
luke2:
[^\s]+
Hi @avargosino ! Did you figure out a way to handle this?