Skip to content

[Question]关于网址的重定向 #223

@yabalababoom

Description

@yabalababoom

对于https://www.tieba.comforum.php?mod=viewthread&tid=567&extra=page%34&mobile=2这种网址,如何重定向到www.tieba.comforum.php?mod=viewthread&tid=567

我尝试使用正则表达式匹配符合规则的网址,我写的匹配规则如下:https://www.tieba.com/forum.php?mod=viewthread&tid=\d{6}&extra=page.*
在重定向至网址中,不知道怎么匹配原网址中的数字部分,求懂得大佬指点一二,万分感谢。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions