Jeśli się zastanawialiście to nie, nie da się parsować HTMLa RegExami:
http://stackoverflow.com/a/1732454
#nieprogramowanie #html #regex #stackoverflow
http://stackoverflow.com/a/1732454
#nieprogramowanie #html #regex #stackoverflow
Wszystko
Najnowsze
Archiwum
I run a small hosting provider with more or less 1535 customers and I use Ansible to automate some operations to be run on all servers. Last night I accidentally run on all servers a Bash script with a rm -rf {foo}/{bar} with that variables undefined due to a big in the code above this line.
All servers got deleted and the
źródło: comment_RHRGe3ueN9hU56PGnQQhFdbJSF5wH1sn.jpg
PobierzEvery time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like
curl -s "[https://en.wikipedia.org/wiki/Wikipedia:Recent_additions"](https://en.wikipedia.org/wiki/Wikipedia:Recent_additions") | sed -ne "/- \.\.\./s/<[^>]*>//gp;1iDid you know..." | more
źródło: comment_1vGhHmLIC4UtuyovkByCybQ3cDSAF6Eg.jpg
PobierzKomentarz usunięty przez autora
Stackoverflow Driven Development vs Google Oriented Programming
źródło: comment_BapksCwySySI5QZVlMwmZfc6ertFs8KO.jpg
Pobierz
źródło: comment_A6j9vJXiS9oO2bJFySH149azNnyn6zog.jpg
PobierzSwiftTransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "
źródło: comment_Q0m6lfbKQg1Ygm2oycAwaXIJXEmXoDaF.jpg
PobierzKomentarz usunięty przez autora
Regulamin
Reklama
Kontakt
O nas
FAQ
Osiągnięcia
Ranking
źródło: comment_q36Ql0JRpHGgzo5luL2YC3BUfQArjx3c.jpg
Pobierz