A “word character” is a character that can be used to form words. Simply put: \b allows you to perform a “whole words only” search using a regular expression in the form of \b word \b. Between two characters in the string, where one is a word character and the other is not a word character.After the last character in the string, if the last character is a word character.Before the first character in the string, if the first character is a word character.There are three different positions that qualify as word boundaries: It matches at a position that is called a “word boundary”. The metacharacter \b is an anchor like the caret and the dollar sign.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |