Timeline for How to capture multiple repeated groups?
Current License: CC BY-SA 4.0
30 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 21, 2023 at 17:16 | answer | added | Jonny | timeline score: 0 | |
Oct 3, 2023 at 18:04 | history | edited | InSync |
This is originally a Swift question.
|
|
Apr 17, 2023 at 10:54 | history | edited | Neuron | CC BY-SA 4.0 |
don't denote edits. if one cares about the history, they can look it up in the edit history https://meta.stackexchange.com/a/127655/316262
|
Aug 22, 2022 at 22:19 | comment | added | Jason S |
Either match all the required patterns in one group (to first ensure a valid match) and then use split() to split them, or if the regex implementation allows it, supply a function and stash each matching group as a side effect (e.g. Javascript's String.replace())
|
|
Aug 22, 2022 at 22:16 | comment | added | Jason S | @rock321987 that's for Swift. | |
Mar 8, 2022 at 18:07 | answer | added | zdim | timeline score: 4 | |
Dec 7, 2021 at 15:56 | history | edited | Wiktor Stribiżew |
edited tags
|
|
Oct 26, 2021 at 16:53 | answer | added | ListenSoftware Louise Ai Agent | timeline score: 0 | |
S Jul 4, 2021 at 9:39 | history | suggested | fmatt | CC BY-SA 4.0 |
grammar improvement
|
Jul 4, 2021 at 5:21 | review | Suggested edits | |||
S Jul 4, 2021 at 9:39 | |||||
Jun 14, 2021 at 18:30 | answer | added | Вова Тихонов | timeline score: 0 | |
Dec 11, 2020 at 2:27 | answer | added | ssent1 | timeline score: 51 | |
Nov 20, 2020 at 3:28 | answer | added | Orwellophile | timeline score: 0 | |
Jun 16, 2020 at 10:20 | answer | added | Mark Robinson | timeline score: 1 | |
Apr 30, 2020 at 10:15 | answer | added | AhmedMoawad | timeline score: 1 | |
Dec 5, 2019 at 22:19 | answer | added | Ulysse BN | timeline score: 5 | |
Dec 13, 2018 at 1:46 | answer | added | Tim Seed | timeline score: 11 | |
May 19, 2016 at 15:30 | answer | added | AndyJ | timeline score: 3 | |
May 3, 2016 at 15:58 | vote | accept | phbelov | ||
May 3, 2016 at 12:31 | answer | added | Byte Commander | timeline score: 123 | |
May 3, 2016 at 12:19 | comment | added | rock321987 | use this answer for finding all matches | |
May 3, 2016 at 12:16 | comment | added | rock321987 |
you updated your question and it became unclear..now you are back to where you started..one more thing..remove anchors ^ and $ (it still won't work)..(?:([A-Z]+),?) will work but you need to find all matches using global flag
|
|
May 3, 2016 at 12:14 | comment | added | phbelov | rock321987, what is unclear? I need every word of the string to be a matched group, but my pattern only captures the last one ("WORLD"). | |
May 3, 2016 at 12:12 | history | edited | phbelov | CC BY-SA 3.0 |
Updated the details
|
May 3, 2016 at 12:11 | comment | added | rock321987 | need more input and output..its still not clear | |
May 3, 2016 at 12:09 | comment | added | phbelov | rock321987, I've updated the input string. I need to extract exactly the string that follows the above pattern. And I need to get all the groups matched the pattern, not only the last one. I want to know how to do it with regex. | |
May 3, 2016 at 12:08 | history | edited | phbelov | CC BY-SA 3.0 |
Edited the input string.
|
May 3, 2016 at 12:07 | comment | added | rock321987 |
why not use [A-Z]+ or [^,]+ to capture the results
|
|
May 3, 2016 at 12:04 | comment | added | rock321987 |
why not split on , ?
|
|
May 3, 2016 at 12:02 | history | asked | phbelov | CC BY-SA 3.0 |