Posted By

thebugslayer on 06/02/07


Tagged


Versions (?)

Groovy 1.0 slashy slash problem


 / Published in: Groovy
 

Bug already has been reported.

  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  

You need to login to post a comment.