I have been reluctant to ask this question for quite a while. Afraid that I am missing something blatantly obvious. How can we split with Regex?
I am aware of the sequence of split->extract with regex->pick an instance for extract (say, first). While it is cumbersome, it certainly works until the regex is more complex and may return an optional match (walk|run) and I need them both for the split.
in the current method, I am starting with the split by function and expecting a resulting list. But the issue is what is it I am trying to split by. Ideally, we should also have a function “split by Regex”., but we don’t.
Jici I am using extract with regex. Say, I want to split by text by either “walk” or “run”. Simplest possible Regex would be (walk|run) and will return a list of "walk"s and "run"s. Then what?
Profile - Jici - Bubble Forum, Thanks for engaging. Here is a very simple example.
Source text is: Today’s exercise: run 5 miles, jog 2 miles, walk 3 miles
Regex would look like: (:|,)\s(run|jog|walk)\s
After a “split by Regex”, I would hope to get a list of 4 elements:
Today’s exercise
5 miles
2 miles
3 miles
Brian, this was just an example of a principle. Split by Regex extract has difficulties when Regex returns a list with different values like in this case: run, jog, walk.