Please help with a Regex Pattern

Scottintexas

Well-known member
Joined
Jun 21, 2018
Messages
47
Location
Texas
Programming Experience
5-10
I am not getting this right. I want the values from the following strings;
StdDev_1: 7.10012290660172E-02
StdDev_2: 0.127890201279279

First value in Group 1 should be 7.10012290660172 and in Group 3 I get 2.
Match 1 = 7.10012290660172E-02
Group 1 = 7.10012290660172
Group 2 = E-0
Group 3 = 2

Match 2 = 0.127890201279279
Group 1 = 0.12789020127927
Group 3 = 9

If it is in Scientific Notation then I want the number of places.

Here is my pattern (?<=StdDev_\d:\s)(\d*\.\d*)(E[-|+]\d)?(\d{1,2}) I have tried a number of variations.

Thank you for your help.
 
Back
Top Bottom