Hi,
I need help from you to solve this problem: I have a column named Description containing the Packaging + Plant number + Line number and I need to add a new column with just the Line number as below.
I tried Regex but it was pulling L3 from the PL3, being the first one in the string, instead of what I need ....
Description | Production Line |
Packaging PL3 L1 | L1 |
Packaging PL3 L2 | L2 |
Packaging PL1 L1 | L1 |
Packaging PL1 L2 | L2 |
Packaging Repack PL1 | L1 |
Packaging Formed PL1 L3 | L3 |
Packaging Formed PL1 L4 | L4 |
Packaging Pattie PL1 L4 | L4 |
Packaging PL2 L5 | L5 |
Packaging PL2 L6 | L6 |
Packaging Common PL4 | L4 |
Packaging PL4 L3 | L3 |
Packaging PL4 L3 SWTS | L3 |
Packaging PL6 L1 | L1 |
Packaging PL6 L2 | L2 |
Pattie Packaging PL6 L2 | L2 |
Thank you!
Solved! Go to Solution.
How about .+\sPL\d+\s(L\d+).* ?
It's perfect! Thank you so much.
Fantastic! Can you make sure to accept my response as a solution as well? Thank you!