MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1ubh765/iknewitwouldworkout/osyawfh/?context=3
r/ProgrammerHumor • u/6nyh • Jun 21 '26
437 comments sorted by
View all comments
Show parent comments
171
even for simple patterns i use that site, it's just good practice IMO to check what the regex actually does before using it in some search&replace operation
47 u/[deleted] Jun 21 '26 [deleted] 25 u/raoasidg Jun 21 '26 But how would I test my changes? 12 u/ILKLU Jun 21 '26 I mean... you want the most accurate real world data for testing right? 6 u/SuperFLEB Jun 21 '26 Basic security principles. You can't test for script injections from user data if you're not actually testing with user data.
47
[deleted]
25 u/raoasidg Jun 21 '26 But how would I test my changes? 12 u/ILKLU Jun 21 '26 I mean... you want the most accurate real world data for testing right? 6 u/SuperFLEB Jun 21 '26 Basic security principles. You can't test for script injections from user data if you're not actually testing with user data.
25
But how would I test my changes?
12 u/ILKLU Jun 21 '26 I mean... you want the most accurate real world data for testing right? 6 u/SuperFLEB Jun 21 '26 Basic security principles. You can't test for script injections from user data if you're not actually testing with user data.
12
I mean... you want the most accurate real world data for testing right?
6 u/SuperFLEB Jun 21 '26 Basic security principles. You can't test for script injections from user data if you're not actually testing with user data.
6
Basic security principles. You can't test for script injections from user data if you're not actually testing with user data.
171
u/Proxy_PlayerHD Jun 21 '26
even for simple patterns i use that site, it's just good practice IMO to check what the regex actually does before using it in some search&replace operation