Ever needed to find words in text but avoid matching them as part of other words? You probably used word boundaries then. However, what is a “word“? It is not evident when you need to handle user-defined “words“ that may contain special characters at the start, middle and end of the “word“. This video topic is rather advanced, you need to understand how lookarounds and word boundaries work. A Python demo is used as a code example, here is the link to the Jupyter notebook: REGEX FIDDLE: FURTHER LINKS - Word Boundaries: - Lookarounds: - Word boundary with words starting or ending with special characters gives unexpected results: - Adaptive word boundaries in VBA:
Hide player controls
Hide resume playing