--Return rows that have one or more words that follow a string that
--begins with 'Call me Ishmael.'
with string_row as
(select 'Call me Ishmael.' as line_1 from dual union all --False
select 'Call me Ishmael. Some years ago .' as line_1 from dual union all --True
select 'Call me Ishmael Some years ago .' as line_1 from dual union all --True
select 'Call me Ishmael, Some years ago .' as line_1 from dual union all --True
select 'Call me Ishmael .' as line_1 from dual union all --False
select 'Twas the best of times. Some years ago.' as line_1 from dual union all --False
select 'Call me Ishmael ' as line_1 from dual -- False
)
select line_1
from string_row where
regexp_like(line_1,'Call me Ishmael\w{1,}') --original attempt.
regexp_like(line_1,'Call me Ishmael[., ]+\b([\w .,]+)') --Attempt that appears to work on Javasrcipt.
질문 :일치하는 정규식 뒤에 하나 이상의 단어가 오겠습니까?
이왜이 정규식 작동하지 않는 이유는 무엇입니까?
정규식이란 무엇입니까?
요즘 긴 질문을 게시 어려움을 겪고 있었어요. 그래서 나는 그것을 단편적으로 다뤄야한다. http://meta.stackexchange.com/questions/197468/where-can-i-get-more-information-about-my-submission-error – zundarz