ri > Regexp::Expression::CharacterType::Word

๐Ÿ”ค Regexp::Expression::CharacterType::Word < Regexp::Expression::CharacterType::Base

๐Ÿ“› NAME

Regexp::Expression::CharacterType::Word โ€” A character type expression that matches word characters (\w) in regular expressions.

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ” Match word characters\wMatches any word character (letter, digit, underscore).
๐Ÿ” Match non-word characters\WMatches any character that is not a word character.
๐Ÿงช Check if a token is a word typetoken.is_a?(Regexp::Expression::CharacterType::Word)Returns true if the token represents a \w or \W type.
โš™๏ธ Access token typetoken.typeReturns :word for word character types.

๐Ÿ“– Description

This class represents a character type token in a regular expression that matches word characters. It is part of the Regexp::Expression AST hierarchy, inheriting from Regexp::Expression::CharacterType::Base. Instances correspond to \w (positive) or \W (negative) in the applied quantifier context.

โš™๏ธ Options

No specific options are defined for this class. All options are inherited from parent classes.

๐Ÿ“ฆ Also found in

/home/chedong/.local/share/rdoc

๐Ÿ”— See Also

Regexp::Expression::CharacterType::Word
๐Ÿ”ค Regexp::Expression::CharacterType::Word < Regexp::Expression::CharacterType::Base ๐Ÿ“› NAME ๐Ÿš€ Quick Reference ๐Ÿ“– Description โš™๏ธ Options ๐Ÿ“ฆ Also found in ๐Ÿ”— See Also

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 07:20 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format