fork(1) download
  1. import re
  2. re_flags = { 're.A' : re.A,
  3. 're.ASCII' : re.ASCII,
  4. 're.DEBUG' : re.DEBUG,
  5. 're.I' : re.I,
  6. 're.IGNORECASE' : re.IGNORECASE,
  7. 're.L' : re.L,
  8. 're.LOCALE' : re.LOCALE,
  9. 're.M' : re.M,
  10. 're.MULTILINE' : re.MULTILINE,
  11. 're.S' : re.S,
  12. 're.DOTALL' : re.DOTALL,
  13. 're.X' : re.X,
  14. 're.VERBOSE' : re.VERBOSE }
  15. flg = 're.I'
  16. if flg in re_flags:
  17. print(re_flags[flg])
  18.  
Success #stdin #stdout 0.01s 28384KB
stdin
Standard input is empty
stdout
2