Timeline for Replace any number of consecutive underscores with a single space
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2018 at 10:13 | vote | accept | Exploring | ||
Mar 7, 2018 at 8:46 | answer | added | Timothy Truckle | timeline score: 1 | |
Mar 7, 2018 at 6:39 | comment | added | mtj | Just as a remark on regex not being an option: yes, this might be OK for educational purposes. But in real life (TM) there is no reason at all for a self-made implementation which replaces the readily available replaceAll in String. Thus, from a professional I'd expect the solution to be s.replaceAll("_+", " ") and no more. | |
Mar 7, 2018 at 1:24 | comment | added | Dair | I would suspect that a Finite State Machine is "overkill" for this kind of problem, but I would highly recommend you look into Finite State Machines for future more complicated versions of this kind of problem. | |
Mar 6, 2018 at 22:56 | answer | added | 200_success | timeline score: 1 | |
Mar 6, 2018 at 22:53 | answer | added | Koekje | timeline score: 2 | |
Mar 6, 2018 at 22:34 | history | edited | 200_success | CC BY-SA 3.0 |
added 40 characters in body; edited tags
|
Mar 6, 2018 at 22:33 | history | edited | Exploring | CC BY-SA 3.0 |
added 2 characters in body
|
Mar 6, 2018 at 22:30 | history | edited | Exploring | CC BY-SA 3.0 |
added 385 characters in body
|
Mar 6, 2018 at 22:27 | comment | added | Exploring | @yuri Nope regex is not an option for me | |
S Mar 6, 2018 at 22:25 | history | edited | Sᴀᴍ Onᴇᴌᴀ♦ | CC BY-SA 3.0 |
fix formatting, update grammar
|
Mar 6, 2018 at 22:23 | review | Suggested edits | |||
S Mar 6, 2018 at 22:25 | |||||
Mar 6, 2018 at 22:12 | history | edited | Raystafarian | CC BY-SA 3.0 |
title
|
Mar 6, 2018 at 21:58 | review | First posts | |||
Mar 6, 2018 at 22:50 | |||||
Mar 6, 2018 at 21:54 | history | asked | Exploring | CC BY-SA 3.0 |