Hi Alteryx experts,
I am noob on using regex to parse within strings and got the following issue when developing a workflow.
My sample input is as below. I know the patterns of strings are really messy and have multiple formats.
| intervention_description |
| Dose Level 1 = 1 x 10e6 T cells/kg; Dose Level 2 = 3 x 10e6 T cells/kg; Dose Level 3 = 1 x 10e7 T cells/kg. |
| 9 x 10^10 vector genomes (vg) of AAV-hAADC-2 in a single dose of 200 µL bilaterally infused over 4 striatal targets |
| Participant assigned to a dose level of NK cells based on when joined study. Starting dose level of NK cells 1 x 10^7 NK cells/kg given by vein on Day 0. |
| CERE-120 5.4 x 10^11 vg |
What i wanted to do is to parse out 10-related numbers from these strings. Desired output should be something like below:
| intervention_description | Output |
| Dose Level 1 = 1 x 10e6 T cells/kg; Dose Level 2 = 3 x 10e6 T cells/kg; Dose Level 3 = 1 x 10e7 T cells/kg. | 1 x 10e6,3 x 10e6,1 x 10e7 |
| 9 x 10^10 vector genomes (vg) of AAV-hAADC-2 in a single dose of 200 µL bilaterally infused over 4 striatal targets | 9 x 10^10 |
| Participant assigned to a dose level of NK cells based on when joined study. Starting dose level of NK cells 1 x 10^7 NK cells/kg given by vein on Day 0. | 1 x 10^7 |
The only "common" thing i found across the strings are that my desired output is something relating to "10". So i was trying to write a syntax that has "10" in it and trying to parse out numbers around "10", not sure if this should be the right direction and how exactly the regex expression should look like. Any guidance would be really appreciated! Thanks in advance for your help! Best, XO | |