Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I'm a regular expression newbie, and I can't quite figure out how to write a single regular expression that would "match" any duplicate consecutive words such as:. The below expression should work correctly to find any number of consecutive words. The matching can be case insensitive.
Yes, all content on the site is available free of charge and without ads. The site is supported via our iOS apps. If you find the content useful, please consider purchasing an app! We strongly encourage you to access the site using a modern web browser released in the past year, especially when using this site in a classroom environment. Starting in , we retire outdated browsers each summer. Retired browsers can still access archived versions of the site.
Teacher Registration. English Language Arts. Grammar Workshop. Learn more or contact Sadlier.
Julius Caesar was a famous Roman leader. He won many battles for Rome and helped the Roman Empire grow. While Caesar had a glowing career in both politics and as a military commander, he was only leader of the Roman Empire for a year before he was assassinated by political enemies.