Skip to content

Feature request: regex on byte vectors #37956

@kernelmethod

Description

@kernelmethod

(As discussed on https://discourse.julialang.org/t/regex-on-byte-vector/47754?u=kernelmethod)

Currently there isn't a great way for Julia to perform regular expressions against binary data; e.g. there isn't an implementation of occursin(r::Regex, x::AbstractVector{UInt8}) or match(r::Regex, x::AbstractVector{UInt8}) in the standard library that doesn't require either (i) mutating x by calling String(x) or (ii) creating a copy of x. In theory it should be possible to implement this, since it's supported by PCRE, and it's probably generally useful functionality for a variety of applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions