Hello!
I'm trying to extract the below bold-underlined pieces from the the phrase using regex. I tried "\w*\((\w*)\,.*\((.*)\)\).*(/w)" but it doesn't seem to be working. While the bold/underlined may
bSpline(((2*Credit-median(Credit))/(max(Credit)-min(Credit))), degree = 1, knots = c(2,375,425))1
Anyone have any ideas?
Solved! Go to Solution.
This is my regex :
Parse:
\w+\W+\d\W+(\w+).*c\((.*\d)\) will give you two required fields only though what @MSalvage provides is also an solution.
Best,
Vishwa
Thanks @vishwa_0308 but i also have to get the last digit outside the parenthesis as well. I haven't quite figured out how to modify your code to get that. Thank you for the help though. You got me closer than I was.
try this : a little add on for the last digit that i missed earlier:
\w+\W+\d\W+(\w+).*c\((.*\d)\).*(\d+)
Thanks @MSalvage but for some reason, I'm getting NULLs when I run this code.
Thanks @vishwa_0308. Worked perfectly.