Timeline for Regex to parse semicolon-delimited fields is too slow
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 12, 2021 at 21:38 | comment | added | Zachary Vance | Another option (a fairly big shift) would be to use a regex engine other than the standard library one, which doesn't backtrack. | |
Oct 12, 2021 at 20:34 | history | edited | jessehouwing | CC BY-SA 4.0 |
deleted 29 characters in body
|
Oct 9, 2013 at 14:11 | comment | added | AJMansfield |
Also, one other thing you should do here, is rather than repeating it, as [^;]*;[^;]*;[^;]*;[^;]*;[^;]*;[^;]*;[^;]* , you should shrink it down to something more concise, for instance [^;]*(?:;[^;]*){6} .
|
|
Oct 9, 2013 at 8:35 | comment | added | Mike | Thanks alot. I didn't got the fact at first, that I have to replace each old element with your new lement. Worked, when I did it like that :D | |
Oct 9, 2013 at 8:33 | vote | accept | Mike | ||
Oct 9, 2013 at 7:53 | history | answered | jessehouwing | CC BY-SA 3.0 |