The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

Parsing Text from the Middle of a String

jbh1128d1
Feuerball

Hello,

 

I'm not great with regex and wondered if I could pull the following name and numbers out of the following string field and parse them into their own columns.:

 

bSpline(RBA, degree = 1, knots = c(45000, 80000))1

bSpline(age, degree = 1, knots = c(27, 32, 69))1

 

The phrase will always look the same "bSpline(variable...."  I will have to pull the variable behind the first open parenthesis out into a column and the numbers (which can change) behind the "c(" after knots into their own columns.  

 

Can regex do this? Does anyone have an example?

1 ANTWORT 1
MSalvage
Bolide

@jbh1128d1,

 

Totally possible. Regex is a great skill to learn. Workflow attached.

 

Best,

MSalvage

Beschriftungen
Top-Lösungs-Autoren