Skip to content

use regular expression instead of hand written strchr search #22

@microcai

Description

@microcai

I seen a lot of hand written code to match the returning results of webqq server. However, such code can be easily replaced by one line regular expression match.

example:
get_verify_code can use this regular expression

"ptui_checkVC('([\d])',[ ]?'([\d\A\a!])',[ ]?'([\d\a\A\])'"

and to parse the do_login result, this regular expression can be used

"ptuiCB('([\d])',[ ]?'([\d])',[ ]?'([^'])',[ ]?'([\d])',[ ]?'([^'])',[ ]?'([^'])'[ ]);"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions