Life, the Internet, and Everything!


Cool preg_replace Solution

The circumstance: Read an item description from an item database. The issue: The block of text for the item description in the comma delimited file is not formatted, and in fact looks stripped of whatever formatting it had previously. Portions of text squished together like “changes.Special” (no area after the duration), and “Disc BrakeHeadset” (certainly […]

Continue Reading