RegEx to get text within tags

后端 未结 5 1713
南旧
南旧 2021-02-06 18:51

I need a Regular Expressions to get the text within 2 tags.

Lets say I want an array returned containing any text within > and

5条回答
  •  不知归路
    2021-02-06 19:34

    Perl regexp would be

    $string =~ /color=rgb\((\d+),(\d+),(\d+)\)/;
    @array = ($1,$2,$3);
    

    But you probably need more information that this.

提交回复
热议问题