Category Archives: RegEx

Extract the first N words from a string with C#

This code will return the first 5 words, change the number in the regular expression as needed:

Posted in RegEx | Tagged | Leave a comment