Timeline for How do I find and replace text with regex in Godot?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 21, 2023 at 21:29 | comment | added | DMGregory♦ | That would be a good thing to state in your question, then. Use the "edit" link at the bottom to ensure all relevant information is included. | |
| Jul 21, 2023 at 21:22 | vote | accept | Seph Reed | ||
| Jul 21, 2023 at 21:22 | answer | added | Seph Reed | timeline score: 2 | |
| Jul 21, 2023 at 21:01 | comment | added | Seph Reed | The "replace" argument of sub is a string. I suppose I could achieve a lot of things by using capture groups, but there's also a lot of things I couldn't achieve. In my case, I need to know what was captured and add it to a dictionary. I'm doing more than string transformations. | |
| Jul 21, 2023 at 20:41 | vote | accept | Seph Reed | ||
| Jul 21, 2023 at 21:16 | |||||
| Jul 21, 2023 at 15:04 | answer | added | Theraot | timeline score: 3 | |
| Jul 21, 2023 at 14:44 | comment | added | DMGregory♦ | When I search for "godot regex", the first result is this page from the engine documentation, which includes information on how to replace text with the sub method. What do you need that isn't already documented there? | |
| Jul 21, 2023 at 14:13 | history | edited | Seph Reed | CC BY-SA 4.0 | added 45 characters in body |
| Jul 21, 2023 at 14:07 | history | asked | Seph Reed | CC BY-SA 4.0 |