Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.16 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. regular expression to match cos(0) or sqrt(0)
  2. re.findall("cos|sqrt([0-9]+)",'cos(0)')
  3.        
  4. (cos|sqrt)([0-9]+)
  5.        
  6. re.findall("(cos|sqrt)([d]+)", "cos(0)")