pspad77: -------------------------------------------------------------------------------- I need count the number of rows that contain the string -3 (exactly one letter and -3).
eg. Billy red-3 John Doe-3 -------------------------------------------------------------------------------- From the menubar select Search > Find Find [a-zA-Z]-3 Put a checkmark in the box "Regular Expressions" You said you need to "count the number of rows" ... Click on "Count" to get the number of _matches_ in the file. Click on "List" to view the number of _rows_ in the file which contain 1 or more matches. (By the way, this advice should also apply to your previous question, since it is possible that there are more than one match per line.) You may find it helpful to learn more about "regular expressions" and how they make searching easier. -- <http://forum.pspad.com/read.php?2,51733,51756> PSPad freeware editor http://www.pspad.com
