<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Sepintas_Tentang_Regular_Expression</id>
	<title>Sepintas Tentang Regular Expression - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Sepintas_Tentang_Regular_Expression"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Sepintas_Tentang_Regular_Expression&amp;action=history"/>
	<updated>2026-04-22T01:37:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Sepintas_Tentang_Regular_Expression&amp;diff=2757&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: ====POSIX Basic Regular Expressions==== Traditional Unix regular expression syntax followed common conventions but often differed from tool to tool. The [[Institute of Electrical and E...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Sepintas_Tentang_Regular_Expression&amp;diff=2757&amp;oldid=prev"/>
		<updated>2008-03-12T04:30:05Z</updated>

		<summary type="html">&lt;p&gt;New page: ====POSIX Basic Regular Expressions==== Traditional &lt;a href=&quot;/wiki/index.php?title=Unix&quot; title=&quot;Unix&quot;&gt;Unix&lt;/a&gt; regular expression syntax followed common conventions but often differed from tool to tool. The [[Institute of Electrical and E...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====POSIX Basic Regular Expressions====&lt;br /&gt;
Traditional [[Unix]] regular expression syntax followed common conventions but often differed from tool to tool. The [[Institute of Electrical and Electronics Engineers|IEEE]] [[POSIX]] Basic Regular Expressions (BRE) standard (released alongside an alternative flavor called Extended Regular Expressions or ERE) was designed mostly for backward compatibility with the traditional syntax but provided a common standard which has since been adopted as the default syntax of many Unix regular expression tools, though there is often some variation or additional features. Many such tools also provide support for ERE syntax with [[command line argument]]s.&lt;br /&gt;
&lt;br /&gt;
In the BRE syntax, most characters are treated as [[literal]]s &amp;amp;mdash; they match only themselves (i.e., &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot;). The exceptions, listed below, are called [[metacharacter]]s or metasequences.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches any single character except newlines (exactly which characters are considered newlines is flavor, character encoding, and platform specific, but it is safe to assume that the line feed character is included). Within POSIX bracket expressions, the dot character matches a literal dot. For example, &amp;lt;code&amp;gt;a.c&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;abc&amp;#039;&amp;#039;&amp;quot;, etc., but &amp;lt;code&amp;gt;[a.c]&amp;lt;/code&amp;gt; matches only &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;.&amp;#039;&amp;#039;&amp;quot;, or &amp;quot;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;[&amp;amp;nbsp;]&amp;lt;/code&amp;gt;&lt;br /&gt;
|A bracket expression. Matches a single character that is contained within the brackets. For example, &amp;lt;code&amp;gt;[abc]&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;quot;, or &amp;quot;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;quot;. &amp;lt;code&amp;gt;[a-z]&amp;lt;/code&amp;gt; specifies a range which matches any lowercase letter from &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot; to &amp;quot;&amp;#039;&amp;#039;z&amp;#039;&amp;#039;&amp;quot;. These forms can be mixed: &amp;lt;code&amp;gt;[abcx-z]&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;y&amp;#039;&amp;#039;&amp;quot;, and &amp;quot;&amp;#039;&amp;#039;z&amp;#039;&amp;#039;&amp;quot;, as does &amp;lt;code&amp;gt;[a-cx-z]&amp;lt;/code&amp;gt;.&lt;br /&gt;
The &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; character is treated as a literal character if it is the last or the first character within the brackets, or if it is escaped with a backslash: &amp;lt;code&amp;gt;[abc-]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;[-abc]&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;[a\-bc]&amp;lt;/code&amp;gt;.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;[^&amp;amp;nbsp;]&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches a single character that is not contained within the brackets. For example, &amp;lt;code&amp;gt;[^abc]&amp;lt;/code&amp;gt; matches any character other than &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;quot;, or &amp;quot;&amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;quot;. &amp;lt;code&amp;gt;[^a-z]&amp;lt;/code&amp;gt; matches any single character that is not a lowercase letter from &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot; to &amp;quot;&amp;#039;&amp;#039;z&amp;#039;&amp;#039;&amp;quot;. As above, literal characters and ranges can be mixed.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the starting position within the string. In line-based tools, it matches the starting position of any line.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the ending position of the string or the position just before a string-ending newline. In line-based tools, it matches the ending position of any line.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;\(&amp;amp;nbsp;\)&amp;lt;/code&amp;gt;&lt;br /&gt;
|Defines a marked subexpression. The string matched within the parentheses can be recalled later (see the next entry, &amp;lt;code&amp;gt;\&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;).  A marked subexpression is also called a block or capturing group.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;\&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches what the &amp;#039;&amp;#039;n&amp;#039;&amp;#039;th marked subexpression matched, where &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is a digit from 1 to 9. This construct is theoretically &amp;#039;&amp;#039;&amp;#039;irregular&amp;#039;&amp;#039;&amp;#039; and was not adopted in the POSIX ERE syntax. Some tools allow referencing more than nine capturing groups.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the preceding element zero or more times. For example, &amp;lt;code&amp;gt;ab*c&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;ac&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;abc&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;abbbc&amp;#039;&amp;#039;&amp;quot;, etc. &amp;lt;code&amp;gt;[xyz]*&amp;lt;/code&amp;gt; matches &amp;quot;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;y&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;z&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;zx&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;zyx&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;xyzzy&amp;#039;&amp;#039;&amp;quot;, and so on. &amp;lt;code&amp;gt;\(ab\)*&amp;lt;/code&amp;gt; matches &amp;quot;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;ab&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;abab&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;ababab&amp;#039;&amp;#039;&amp;quot;, and so on.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|&amp;lt;code&amp;gt;\{&amp;#039;&amp;#039;m&amp;#039;&amp;#039;,&amp;#039;&amp;#039;n&amp;#039;&amp;#039;\}&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the preceding element at least &amp;#039;&amp;#039;m&amp;#039;&amp;#039; and not more than &amp;#039;&amp;#039;n&amp;#039;&amp;#039; times. For example, &amp;lt;code&amp;gt;a\{3,5\}&amp;lt;/code&amp;gt; matches only &amp;quot;&amp;#039;&amp;#039;aaa&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;aaaa&amp;#039;&amp;#039;&amp;quot;, and &amp;quot;&amp;#039;&amp;#039;aaaaa&amp;#039;&amp;#039;&amp;quot;. This is not found in a few, older instances of regular expressions.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;lt;code&amp;gt;.at&amp;lt;/code&amp;gt; matches any three-character string ending with &amp;quot;at&amp;quot;, including &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;, and &amp;quot;&amp;#039;&amp;#039;bat&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
*&amp;lt;code&amp;gt;[hc]at&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot; and &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
*&amp;lt;code&amp;gt;[^b]at&amp;lt;/code&amp;gt; matches all strings matched by &amp;lt;code&amp;gt;.at&amp;lt;/code&amp;gt; except &amp;quot;&amp;#039;&amp;#039;bat&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
*&amp;lt;code&amp;gt;^[hc]at&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot; and &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;, but only at the beginning of the string or line.&lt;br /&gt;
*&amp;lt;code&amp;gt;[hc]at$&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot; and &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;, but only at the end of the string or line.&lt;br /&gt;
&lt;br /&gt;
====POSIX Extended Regular Expressions====&lt;br /&gt;
The meaning of metacharacters [[escape sequence|escaped]] with a backslash is reversed for some characters in the POSIX Extended Regular Expression (ERE) syntax. With this syntax, a backslash causes the metacharacter to be treated as a literal character. Additionally, support is removed for &amp;lt;code&amp;gt;\&amp;lt;em&amp;gt;n&amp;lt;/em&amp;gt;&amp;lt;/code&amp;gt; backreferences and the following metacharacters are added:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;?&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the preceding element zero or one time. For example, &amp;lt;code&amp;gt;ba?&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;quot; or &amp;quot;&amp;#039;&amp;#039;ba&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt;&lt;br /&gt;
|Matches the preceding element one or more times. For example, &amp;lt;code&amp;gt;ba+&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;ba&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;baa&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;baaa&amp;#039;&amp;#039;&amp;quot;, and so on.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|The choice (aka alternation or set union) operator matches either the expression before or the expression after the operator. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;abc|def&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;abc&amp;#039;&amp;#039;&amp;quot; or &amp;quot;&amp;#039;&amp;#039;def&amp;#039;&amp;#039;&amp;quot;.&amp;lt;/td&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;lt;code&amp;gt;[hc]+at&amp;lt;code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;hhat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;chat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;hcat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;ccchat&amp;#039;&amp;#039;&amp;quot;, and so on, but not &amp;quot;&amp;#039;&amp;#039;at&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
*&amp;lt;code&amp;gt;[hc]?at&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;hat&amp;#039;&amp;#039;&amp;quot;, &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot;, and &amp;quot;&amp;#039;&amp;#039;at&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
*&amp;lt;code&amp;gt;cat|dog&amp;lt;/code&amp;gt; matches &amp;quot;&amp;#039;&amp;#039;cat&amp;#039;&amp;#039;&amp;quot; or &amp;quot;&amp;#039;&amp;#039;dog&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
POSIX Extended Regular Expressions can often be used with modern Unix utilities by including the [[command line]] flag &amp;lt;var&amp;gt;-E&amp;lt;/var&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====POSIX character classes====&lt;br /&gt;
Since many ranges of characters depend on the chosen locale setting (i.e., in some settings letters are organized as &amp;#039;&amp;#039;abc...zABC...Z&amp;#039;&amp;#039;, while in some others as &amp;#039;&amp;#039;aAbBcC...zZ&amp;#039;&amp;#039;), the POSIX standard defines some classes or categories of characters as shown in the following table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! POSIX !! ASCII !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:alnum:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[A-Za-z0-9]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Alphanumeric characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:alpha:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[A-Za-z]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Alphabetic characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:blank:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[ \t]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Space and tab&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:cntrl:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[\x00-\x1F\x7F]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Control characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:digit:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[0-9]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Digits&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:graph:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[\x21-\x7E]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Visible characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:lower:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[a-z]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Lowercase letters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:print:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[\x20-\x7E]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Visible characters and spaces&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:punct:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[!&amp;quot;#$%&amp;amp;&amp;#039;()*+,-./:;&amp;lt;=&amp;gt;?@[\\\]_`{|}~]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| Punctuation characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:space:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[ \t\r\n\v\f]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Whitespace characters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:upper:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[A-Z]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Uppercase letters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;[:xdigit:]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;[A-Fa-f0-9]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Hexadecimal digits&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
POSIX character classes can only be used within bracket expressions. For example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:upper:]ab]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; matches the uppercase letters and lowercase &amp;quot;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;quot; and &amp;quot;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In Perl regular expressions, &amp;lt;code&amp;gt;[:print:]&amp;lt;/code&amp;gt; matches &amp;lt;code&amp;gt;[:graph:]&amp;lt;/code&amp;gt; union &amp;lt;code&amp;gt;[:space:]&amp;lt;/code&amp;gt;. An additional non-POSIX class understood by some tools is &amp;lt;code&amp;gt;[:word:]&amp;lt;/code&amp;gt;, which is usually defined as &amp;lt;code&amp;gt;[:alnum:]&amp;lt;/code&amp;gt; plus underscore. This reflects the fact that in many programming languages these are the characters that may be used in identifiers. The editor [[Vim (text editor)|Vim]] further distinguishes &amp;#039;&amp;#039;word&amp;#039;&amp;#039; and &amp;#039;&amp;#039;word-head&amp;#039;&amp;#039; classes (using the notation &amp;lt;code&amp;gt;\w&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;\h&amp;lt;/code&amp;gt;) since in many programming languages the characters that can begin an identifier are not the same as those that can occur in other positions.&lt;br /&gt;
&lt;br /&gt;
Note that what the POSIX regular expression standards call &amp;#039;&amp;#039;character classes&amp;#039;&amp;#039; are commonly referred to as &amp;#039;&amp;#039;POSIX character classes&amp;#039;&amp;#039; in other regular expression flavors which support them. With most other regular expression flavors, the term &amp;#039;&amp;#039;character class&amp;#039;&amp;#039; is used to describe what POSIX calls &amp;#039;&amp;#039;bracket expressions&amp;#039;&amp;#039;.&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>