firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.26k stars 199 forks source link

Java: Flags `d` and `U` are not supported #2206

Closed Marcono1234 closed 8 months ago

Marcono1234 commented 8 months ago

Bug Description

Java supports the following flags: idmsuxU (see documentation)

However, Regex101 does not seem to support / recognize these flags:

Also, there is no dropdown entry for UNIX_LINES in the global flag selection.

Reproduction steps

  1. Select the Java regex flavor
  2. Enter this pattern
    (?idmsuxU)a

    :x: Bug: It shows a parse error

Expected Outcome

The pattern should be parsed successfully

Or if these flags are not supported yet by Regex101, it would at least be good if the parse error explicitly mentioned that.

Browser

Firefox 121.0 (64-bit)

OS

Windows 10

firasdib commented 8 months ago

Thank you, this will be fixed in the next release.