preg_replace help

    Date: 12/06/07 (PHP Community)    Keywords: no keywords

    How would a RegEx look to parse a string and replace a line like the following.

    Original:

    • U.S. District Court for the Southern District of New York


    New:
  1. U.S. District Court for the Southern District of New York


  2. And the ending BR tag is optional. Thanks.

    Source: http://community.livejournal.com/php/601458.html

« Preventing SQL Injection || stopping iFrames from... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home