Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RegEX - grab everything to the right of a pattern

SylviaK
8 - Asteroid

Hi, 

 

Again struggling with RegEx. I would like to get from field 1 to field 2.  Essentially I want everything from "TEEST_XYZ File Name" onwards.

 

 

 

Field 1Field 2
1/22/2021 SDFSD ASDFASDF-fix ADSFASDF SDFSDFSD -42.224061 < -35 67 COUNT(s):23,67 :TEEST_XYZ File Name - XYZ_zudds_20210122  has following  COUNT(s):23,67 1/23/2021 8:30:28 PM LowTEEST_XYZ File Name - XYZ_zudds_20210122  has following  COUNT(s):23,67 1/23/2021 8:30:28 PM Low
TEEST_XYZ-COUNT   :    :TEEST_XYZ File Name - XYZ_ererg_20210125  Source_ID: 33134  File_ID: 40074  has following  COUNT(s):22TEEST_XYZ File Name - XYZ_ererg_20210125  Source_ID: 33134  File_ID: 40074  has following  COUNT(s):22

 

I have tried using the REGEX Replace function as follows: (\.*)(\u{5}_\u{3}\s\w{4}\s\w{4}\.*) with replacement value $2, but that doesn't work. What am I doing wrong?

 

Thanks

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @SylviaK 

 

Use a regex tool parse mode below pattern it gets everything after TEEST_XYZ File Name

 

 

(TEEST_XYZ File Name.*)

 

or formula

REGEX_Replace([Field 1], ".*(TEEST_XYZ File Name.*)", "$1")

 

Workflow:

atcodedog05_0-1621262431491.png

 

Hope this helps 🙂

MarqueeCrew
20 - Arcturus
20 - Arcturus

@SylviaK ,

 

Would something simple like:

REGEX_Replace([Field 1], "(.*:)(\u+.*)", '$2')

work for you?

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
SylviaK
8 - Asteroid

Many thanks. Always looks so simple with hindsight 🙂

Labels