How the regex matches the RMB symbol

Updated on technology 2024-04-11
2 answers
  1. Anonymous users2024-02-07

    /our-price\">\u00a5 (./span>/'

    unnnn means "the character in unicode with hexadecimal nnn".

    I've checked the table, and the unicode hexadecimal is 00a5, so it's okay like this.

    I've tested it, and I'm sure it's okay

    I also attach the information I used to learn about the canon:].

    Table 7The syntax of an alarm character (printing it has the effect of a computer beep) has not been discussed in detail

    b is usually the demarcation of the word, but if used in a character class, it means backspace.

    t tab, tab

    r enter v vertical tab.

    f page break.

    n line break.

    e escape

    0nn ascii is a character whose octal is nn.

    The hexadecimal character in xnn ascii.

    The hexadecimal character in UNNNN Unicode is nnnn.

    cn ascii control character. For example, cc stands for CTRL+C

    a string (similar to , but not affected by the multi-line option).

    Z-string ending or ending of line (not affected by the option to handle multiple lines).

    z-string ending (similar to $, but not affected by the option to handle multiple lines).

    p A character class named name in Unicode, e.g. p. p

    exp) greedy subexpression.

    exp) balance group.

    im-nsx:exp) to change the processing options in the subexpression exp.

    im-nsx) changes the processing options for the part that follows the expression.

    exp)yes|no) take exp as a zero-width forward antecedent assertion, and if it matches at this position, use yes as the expression for this group; Otherwise, use no

    exp)yes) as above, just using an empty expression as no

    name)yes|no) If the group named name captures the contents, use yes as the expression; Otherwise, use no

    name)yes) but using an empty expression as no

  2. Anonymous users2024-02-06

    Regular expressions begin with " "; End with "$".

    1. : Match the first line of the input word. If the multiline property of the regexp object is set, it also matches the position after "" or "".

    2. $: matches the end of the input line. If the multiline property of the regexp object is set, the $ also matches the position before "" or "".

    3. *: Match the previous sub-expression any number of times. For example, zo* can match "z", and it can match "zo" and "zoo". *Equivalent.

    4. +: Match the previous subexpression once or more (greater than or equal to 1 time). For example, "zo+" can match "zo" and "zoo", but not "z". *Equivalent.

    5、?: Matches the preceding subexpression zero or once. For example, "do(es)?".You can match "do" or "does".*Equivalent.

Related questions
7 answers2024-04-11

Hello, although I haven't studied PHP, but in order to help you (and your 100 points) also take a little look, here are my opinions. Please forgive me if it is not right. >>>More

7 answers2024-04-11

It's not equal, and there doesn't seem to be such a thing as twice as much as AS. >>>More

6 answers2024-04-11

1.The decimal system of 15 can be represented as 4 as 4 bits'B1111 (binary), 4'd15 (decimal), or 4'hf (hexadecimal).That is, it should correspond to the base system. >>>More

24 answers2024-04-11

Operate from right to left, -i--so calculate -i first--, the operation level is higher, so it can be written as -(i--)i--for 8, add a - sign, so -i--is 8, at this time i--after, i=7, and then -i++ is the same, can be written as -(i++) so -i++ is -7, at this time i++ becomes 8,--i, subtract 1 before execution, so --i is 7, at this time i=7, ++i is the same, add 1 before executing i, so ++i is 8, at this time i=8, then calculate i--,i--is still equal to 8, then i minus one becomes 7, i++, i++ is equal to 7, and then i++, i=8, so finally i=8, and then print it out in turn, pay attention to the operation is from right to left, but print from left to right print i,i++,i--,i,--i,-i++,i-, so the check mark result is out.

8 answers2024-04-11

1. Axis of symmetry.

Basic expression: f(x)=f(-x) is an even function with symmetry at the origin. >>>More