How can I transfer the following regex from Java to PostgreSQL syntax:
Pattern.compile("(?imu)(P\\W*Ř\\W*E\\W*D\\W*V\\W*O\\W*L\\W*Á\\W*N\\W*Í)"));
I have tried:
select regexp_matches('P Ř E D V O L Á N Í','(?imu)(P\\W*Ř\\W*E\\W*D\\W*V\\W*O\\W*L\\W*Á\\W*N\\W*Í)')
But got ERROR: invalid regular expression: invalid embedded option