Timeline for Preg_replace improvement
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2019 at 14:47 | comment | added | Donald.McLean | Hi and welcome to the site. Unfortunately, this reads like a "please help me write better code" - which is off topic, rather then "please explain what is wrong with this code so I can improve it" - which would be on-topic. | |
Jul 11, 2019 at 13:30 | review | Close votes | |||
Jul 20, 2019 at 3:05 | |||||
Dec 5, 2012 at 9:09 | comment | added | user20020 | Thanks a lot ! It's really easier ! I'm going to work on it, i would like it transform something like -line1 -- line2 to line1 -- line2 refuse +|-|=|* without whitespace after ... | |
Dec 3, 2012 at 14:30 | review | First posts | |||
Dec 3, 2012 at 17:17 | |||||
Dec 3, 2012 at 14:23 | answer | added | piouPiouM | timeline score: 2 | |
Dec 3, 2012 at 14:20 | comment | added | Duniyadnd | Is $features the entire string - or has it already been separated for each line? Based off what I see in your Regexp - it looks like the entire string is in there. You may be better off just exploding your string by line and then compare the first 2 to 3 characters using a switch statement which would be a little cheaper to process me thinks | |
Dec 3, 2012 at 14:12 | history | asked | Sébastien | CC BY-SA 3.0 |