Top "Word-boundary" questions

A word boundary is the regular expression construct (\b) that denotes a word boundary which indicates a pointer position that is ahead of and behind a word character and a non-word character or the other way around (\w\W or \W\w), and vice-versa for non-word boundaries (\B).

Regex match entire words only

I have a regex expression that I'm using to find all the words in a given block of content, case …

regex word-boundary
What is a word boundary in regex, does \b match hyphen '-'?

I'm trying to use regexes to match space-separated numbers. I can't find a precise definition of \b ("word boundary"). I …

regex word-boundary
How to use grep()/gsub() to find exact match

string = c("apple", "apples", "applez") grep("apple", string) This would give me the index for all three elements in string. …

r regex word-boundary
How to match the first word after an expression with regex?

For example, in this text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu tellus vel nunc pretium lacinia. …

regex lookbehind word-boundary
Oracle REGEXP_LIKE and word boundaries

I am having a problem with matching word boundaries with REGEXP_LIKE. The following query returns a single row, as …

regex oracle word-boundary
Javascript - regex - word boundary (\b) issue

I have a difficulty using \b and greek characters in a regex. At this example [a-zA-ZΆΈ-ώἀ-ῼ]* succeeds to …

javascript regex word-boundary
MySQL REGEXP word boundaries [[:<:]] [[:>:]] and double quotes

I'm trying to match some whole-word-expressions with the MySQL REGEXP function. There is a problem, when there are double quotes …

mysql regex word-boundary
PostgreSQL Regex Word Boundaries?

Does PostgreSQL support \b? I'm trying \bAB\b but it doesn't match anything, whereas (\W|^)AB(\W|$) does. These 2 expressions …

regex postgresql word-boundary
utf-8 word boundary regex in javascript

In JavaScript: "ab abc cab ab ab".replace(/\bab\b/g, "AB"); correctly gives me: "AB abc cab AB AB" …

javascript regex unicode utf-8 word-boundary