Groovy 1.0 slashy slash problem


/ Published in: Groovy
Save to your folder(s)

Bug already has been reported.


Copy this code and paste it in your HTML
  1. println "Giant\tGap\\tHere"
  2. println 'Giant\tGap\\tHere'
  3. println """Giant\tGap\\tHere"""
  4. println '''Giant\tGap\\tHere'''
  5.  
  6. println(/GiantGapHere/) //Parenthesis Required!
  7. println(/Giant\tGap\\tHere/)
  8. println(/Giant\Gap\\\tHere/)
  9. println(/Giant\/Gap\/\/\/tHere/)
  10. println(/Giant\/Gap\/\/\/tHere/.size())
  11.  
  12. println(/a\/b/)
  13. println(/a\/b/.size())
  14.  
  15. println(/a\\x\/b/)
  16.  
  17. assert 'a/b'== /a\/b/
  18. assert 'a\/b'== /a\\/b/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.