Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #211: Generating Email Addresses

Ian_Johnson
7 - Meteor

More Regex skills are needed to reduce the number of tools used

 

Spoiler
211 spoiler.PNG
JohanRanschaert
8 - Asteroid

Amazing 🙂

JohanRanschaert
8 - Asteroid

Hi Kenda,

 

I understand what you in the Formula tool, but don't understand the syntax of the following line "REGEX_Replace([Users], ".*\s(.*?)\d+", "$1")"

Can you please explain this or tell me where I can teach myself about this syntx.

 

Many Thx,

 

Johan

JohanRanschaert
8 - Asteroid

Hi Ollie,

 

Can you explain a little more in detail the syntax of this specific line in your Formula tool.

 

Thx a lot,

 

Johan

inaraievskyi
Alteryx Alumni (Retired)

Is there any other tool except Inner join to compare expected output and achieved one?

hbraunius
8 - Asteroid

My solution attached.

Neetu
8 - Asteroid
Spoiler
solution_211.png
ALexAn
8 - Asteroid
Spoiler
solution.PNG
RobertW
Alteryx
Alteryx

I learned how to change case with Regex!  Thanks

 

Regex

Spoiler
Match
([[:alpha:]]{1}).*\s([[:alpha:]]*)


Replace
\u$1$2@testemail.com

\u will uppercase next character, \U will uppercase whole match
https://www.boost.org/doc/libs/1_64_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.htm...

 

Spoiler
RobertW_0-1587507084054.png

 

 

papalow
8 - Asteroid

Nice