code_junkie

How can I match quoted text excluding leading and trailing whitespaces?

Nov 13th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. He said, "For my part, it was Greek to me. "
  2.  
  3. For my part, it was Greek to me.
  4.  
  5. "s*([^"]*)s*"
  6.  
  7. "s*([^"]*?)s*"
  8.  
  9. "s*([^"]*[^"s])s*"
  10.  
  11. "s*([^"]*[^s])s*"
Add Comment
Please, Sign In to add comment