Skip to content

Capture returns binary value? #5

@JamesNewton

Description

@JamesNewton

What would it take to return, for example, the /binary/ value matched by the %x or %d codes. E.g. if you had a pattern like (%x+),(%x+) and you fed it "0F,09" you could get back matches of "0F" and another of "09" just like now, but also get back an array of binary values, containing 15 and 9. In other words, as long as you are matching numbers, convert them to binary values at the same time.

This comes from my thinking and question here:
https://arduino.stackexchange.com/questions/50170/extract-binary-data-from-text-string-like-perl-pack-not-just-regexp

Probably not worth doing? But I figured I would ask just incase other people see value in that idea.

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