/ Published in: Regular Expression
                    
                                        
This regular expression matches any trailing whitespace at the end of a line (whitespace and tabs).  Replace this with nothing to remove trailing whitespace from files.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
[ \t]+$
Comments
 Subscribe to comments
                    Subscribe to comments
                
                