13.07.2015 Views

Download - The Bastards Book of Regular Expressions

Download - The Bastards Book of Regular Expressions

Download - The Bastards Book of Regular Expressions

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Anchors: A way to trim emptiness 59http://example.com/events/http://example.com/people/http://example.com/places/And we need a reference to a common filename:http://example.com/events/index.htmlhttp://example.com/people/index.htmlhttp://example.com/places/index.htmlAnswerFind $Replace index.htmlStripping end-<strong>of</strong>-line charactersComma-delimited files (also known as CSVs, comma-separated values) is a common text formatfor data. In order for a program like Excel to arrange CSV data into a spreadsheet, it uses the commasto determine where the “columns” are.For example:Item,Quantity,In Season?Apples,50,YesOranges,109,NoPears,12,YesKiwis,72,YesIn Excel, the data looks like this:CSV in Excel

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!