Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. '.*?'
  2.  
  3. IF @RetValue = 'Cat'
  4. /*SET @RetValue = 'WrongLocation
  5. and it works here' */
  6. ------testing line
  7. SET @Dude = 'Punto'
  8. /* comments */
  9. -- But it doesn't work here because inside comments!
  10. -- and this is aren't the end
  11. SET @RetValue = 'But this should
  12. work here'
  13.  
  14. 'Cat'
  15. ''Punto'
  16. and
  17. 'But this should
  18. work here'
  19.  
  20. string commentFree = Regex.Replace(sourceString, @"/*.*?*/|--[^n]*n", string.Empty, RegexOptions.Multiline | RegexOptions.Singleline);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement