Guest User

Untitled

a guest
Jul 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Supersedes:?[\r\n ]+[w-s]+[\r\n ]+(.*)[\r\n ]+Serial Numbers?:?[ \r\n]+.*?
  2.  
  3. import re
  4. result = re.search('Supersedes:?[\r\n ]+[w-s]+[\r\n ]+(.*)[\r\n ]+Serial Numbers?:?[ \r\n]+.*?', 'rnrnSupersedesrnNonernrnTriax PFG Interface Boards: Inova: P/N 01-903510-02 and Unity plus: P/N 01-903510-03rnrnService Serial Numbers:rnUS00000000-US99999999rnrn', re.S|re.M)
  5. result[1]
  6. 'Boards: Inova: P/N 01-903510-02 and Unity plus: P/N 01-903510-03rnrnService'
Add Comment
Please, Sign In to add comment