Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

iceja

@iceja
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Why regular expression doesn't work in Java 11
    I iceja

    I have the regular expression:

    ^Статья\s(?\p{N}+)\.?\s(?.+)</pre>

    and a string:

    <pre>Статья 1. Цели и сфера применения технического регламента</pre>

    When I run here https://regex101.com/ (FLAVOR PCRE2 (PHP >= 7.3) - it does work well. But when I run this regular expression in
    <pre>
    root@b2fa9e8a6f7d:/app# java --version
    openjdk 11.0.11 2021-04-20
    OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
    OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)</pre>

    pattern.matcher(string) returns null which is wrong. Please tell me how to fix that? Or can you give me a manual about Regular Expressions dialects ?

    FLAVOR PCRE2 (PHP >= 7.3) was selected intentionally because Flavor Java 8 is completely incompatible with AdoptOpenJDK-11.0.11+9</x-turndown>

    Regular Expressions regex java php com sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups