sql - Regular expression REGEXP_LIKE -


please me regular expression:

where regexp_like(dbfield, '*п* 2($| )', 'i') 

but find:

"кран № 2 пом. 144" "кр. № 2 пом. 260" ... 

i don't understand why find that. must "п" before "2". what's wrong? (db oracle)

regexp п* means symbol "п", repeated 0 or more times
try

where regexp_like(dbfield, 'п.*2($| )', 'i') 

or , faster

where lower(dbfield)||' ' '%п%2 %' 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -