通过本文主要向大家介绍了javascipt:void 0,javascipt:void,javascipt:,javascipt怎么读,什么是javascipt等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
</div>
Alphanumeric character Itself</div>
\0 The NUL character (\u0000)</div>
\t Tab (\u0009)</div>
\n Newline (\u000A)</div>
\v Vertical tab (\u000B)</div>
\f Form feed (\u000C)</div>
\r Carriage return (\u000D)</div>
\xnn The Latin character specified by the hexadecimal number nn; for example, \x0A is the same as \n</div>
\uxxxx The Unicode character specified by the hexadecimal number xxxx; for example, \u0009 is the same as \t</div>
\cX The control character ^X; for example, \cJ is equivalent to the newline character \n</div>
</div>
2. Regular expression character classes Character Matches
[...] Any one character between the brackets.</div> [^...] Any one character not between the brackets.</div> . Any character except newline or another Unicode line terminator.</div> \w Any ASCII word character. Equivalent to [a-zA-Z0-9_].</div> \W Any character that is not an ASCII word character. Equivalent to [^a-zA-Z0-9_].</div> \s Any Unicode whitespace character.</div> \S Any character that is not Unicode whitespace. Note that \w and \S are not the same thing.</div> \d Any ASCII digit. Equivalent to [0-9].</div> \D Any character other than an ASCII digit. Equivalent to [^0-9].</div> [\b] A literal backspace (special case).</div> </div> </div> {n,m} Match the previous item at least n times but no more than m times.</div> {n,} Match the previous item n or more times.</div> {n} Match exactly n occurrences of the previous item.</div> ? Match zero or one occurrences of the previous item. That is, the previous item is optional. Equivalent to {0,1}.</div> + Match one or more occurrences of the previous item. Equivalent to {1,}.</div> * Match zero or more occurrences of the previous item. Equivalent to {0,}.</div> </div> </div> | Alternation. Match either the subexpression to the left or the subexpression to the right.</div> (...) Grouping. Group items into a single unit that can be used with *, +, ?, |, and so on. Also remember the characters that match this group for use with later references.</div> (?:...) Grouping only. Group items into a single unit, but do not remember the characters that match this group.</div> \n Match the same characters that were matched when group number n was first matched. Groups are subexpressions within (possibly nested) parentheses. Group numbers are assigned by counting left parentheses from left to right. Groups formed with (?: are not numbered.</div> </div> </div> ^ Match the beginning of the string and, in multiline searches, the beginning of a line.</div> $ Match the end of the string and, in multiline searches, the end of a line.</div> \b Match a word boundary. That is, match the position between a \w character and a \W character or between a \w character and the beginning or end of a string. (Note, however, that [\b] matches backspace.)</div> \B Match a position that is not a word boundary.</div> (?=p) A positive lookahead assertion. Require that the following characters match the pattern p, but do not include those characters in the match.</div> (?!p) A negative lookahead assertion. Require that the following characters do not match the pattern p.</div> </div> </div> i Perform case-insensitive matching.</div> g Perform a global matchthat is, find all matches rather than stopping after the first match.</div> m Multiline mode. ^ matches beginning of line or beginning of string, and $ matches end of line or end of string.</div> </div> </div> string.replace(regexp, replacement)</div> </div> Characters Replacement</div> $1, $2, ..., $99 The text that matched the 1st through 99th parenthesized subexpression within regexp</div> The substring that matched regexp</div> The text to the left of the matched substring</div> The text to the right of the matched substring</div> A literal dollar sign</div> </div> name.replace(/(\w+)\s*,\s*(\w+)/, "$2 $1");</div> text.replace(/"([^"]*)"/g, "''$1''");</div> text.replace(/\b\w+\b/g, function(word) {</div> return word.substring(0,1).toUpperCase( ) +</div> word.substring(1);</div> });</div> </div>