Wednesday, February 10, 2010

Lets post something

something

4 comments:

  1. https://stackoverflow.com/questions/1276764/stripping-everything-but-alphanumeric-chars-from-a-string-in-python

    "import re, string; pattern = re.compile('[\W_]+')" \
    "pattern.sub('', string.printable)"

    ReplyDelete
  2. https://stackoverflow.com/questions/4703390/how-to-extract-a-floating-number-from-a-string

    re.findall(r"[-+]?\d*\.\d+|\d+", "Current Level: -13.2 db or 14.2 or 3")

    ReplyDelete