Displaying page
of
 pages;
Items  to 
    
    
            
                
                    | Title | Test
                        Details
                        
                        
                            Pattern Title | 
                
                    | Expression | 
                            ^([\s\S]){1,20}([\s\.])
                         | 
                
                    | Description | This pattern returns as much of the first x characters of a string as full words or sentences as a match, where x is currently 20. Change x to adjust the length supported in your database field.
I'm currently using this within a string shortening utility to shrink large text regions to word/sentance-boundary elements and appending an ellipsis as a text continuator. | 
                
                    | Matches | Any text of any length | ...but will only 'match' the first 20 characters at a period or space. | 
                
                    | Non-Matches | N/A | 
                
                    | Author | Rating:  Shawn Hall | 
            
        
    
        
        
   Displaying page
of
 pages;
Items  to