I have a column and I need to extract the numbers from the strings in each row. The numbers could be decimals or not.
I am using this formula: Regex( :PIPE_LENGTH, "[^(\d+\.\d+)]", "", globalreplace )
Examples:
String: Length = 3.5". Completed by John.
Expected: 3.5
Actual: 3.5..
Example 2:
Completed for CEC. Pipe depth- 4.5" (MER)
Expected: 4.5
Actual: .4.5()
Why are the extra periods and parentheses coming in? Also, I am confused by the ^ at the beginning. When I remove it I get text only and not the numbers.
Thanks