Changeset 1324:1f8d414831c2 in orange-bioinformatics


Ignore:
Timestamp:
01/26/11 16:49:00 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
5a582adc0b58784a23959417c19eb678f5610b22
Message:
  • fixed regular expression for extracting brite entry titles
File:
1 edited

Legend:

Unmodified
Added
Removed
  • obiKEGG.py

    r1246 r1324  
    572572class KEGGBriteEntry(object): 
    573573    _search_re = {"ids": re.compile('(?P<ids>\[.*:.*\])'), 
    574                   "title": re.compile('(<B>)?(?P<title>[a-zA-Z0-9].*?)(?(1)</B>)$'), 
     574                  "title": re.compile(r'(<[Bb]>)?(?P<title>\b[a-zA-Z0-9_/\s,;:.+=\-\[\]{}\(\)]+?)(?(1)</[Bb]>)$'), 
    575575                  "links": re.compile('(?P<links><a href=".+?">.*?</a>)')} 
    576576    def __init__(self, line, entrys=None): 
Note: See TracChangeset for help on using the changeset viewer.