fork download
  1. import re
  2. regex = r"(?:OR011-|OGEA|LLCM|A|1-)\d{2,15}"
  3.  
  4. test_str = ("OR011-103401461251\n"
  5. "Hi the information is 1-234455\n"
  6. "How are you?LLCM23466723")
  7. print(re.findall(regex, test_str))
Success #stdin #stdout 0.02s 27744KB
stdin
Standard input is empty
stdout
['OR011-103401461251', '1-234455', 'LLCM23466723']