Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. Regex lookaheads (or behinds) matching foo bar or bar foo
  2. /^(?=.*foo)(foo )?bar baz( foo)?$/
  3.    
  4. /foo bar baz|bar baz foo/
  5.    
  6. $foo = 'foo'
  7. $barbaz = 'bar baz'
  8. $regex = "($foo $barbaz)|($barbaz $foo)"
  9.    
  10. (foo bar baz|bar baz foo)
  11.    
  12. (foo (bar|baz)|(bar|baz) foo)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top