Guest User

Untitled

a guest
Jan 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. 'apple' true
  2. 'apple banana' true
  3. 'apple banana orange' true
  4. ' apple banana' true
  5. ' apple banana' true
  6. ' ' false
  7. ' ' false
  8. ' ' false
  9.  
  10. ^(?!s+$).+
  11.  
  12. ^ # start of the line / string
  13. (?!s+$) # neg. lookahead, making sure there are not only whitespaces
  14. .+ # at least one character, possibly more
  15.  
  16. ^s*S.*$
  17.  
  18. ^(?=.*S).*
  19.  
  20. ^(?=.*S)(?!.*d).*
  21.  
  22. S
Add Comment
Please, Sign In to add comment