Regex to parse image data URI

后端 未结 5 2293
野性不改
野性不改 2021-02-07 04:29

If I have :



        
5条回答
  •  不要未来只要你来
    2021-02-07 04:59

    Here is my regular expression where I had to separate the mime-type (image/jpg) as well.

    ^data:(?(?\w+)\/(?\w+));(?\w+),(?.*)
    

提交回复
热议问题