Ruby: String#strip which whitespace characters? -


which whitespace characters string methods lstrip, lstrip!, rstrip, rstrip!, strip, strip! remove?

horizontal/vertical tabs, newlines, page/form feeds, carriage returns, , spaces.

for ascii strings, strip methods use string class's ascii_isspace method, looks character in isspacetable. this table identifies character codes 9-13 , 32 whitespace..


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -