0
你能解釋一下爲什麼我從這三個正則表達式中得到不同的結果嗎?我期待所有三人的第一次輸出。regexp_substr結果解釋
SQL> select regexp_substr(input,'.*') sub from test_regexp;
SUB
------------------------------------------------------------------------------
Understanding greediness, not the Enron kind
SQL> select regexp_substr(input,'[A-Za-z ]*') sub from test_regexp;
SUB
------------------------------------------------------------------------------
Understanding greediness
SQL> select regexp_substr(input,'[[:alpha:][:space:]]*') sub from test_regexp;
SUB
------------------------------------------------------------------------------
Understanding greediness
感謝
感謝您的完整的解釋和正確的解決方案。我錯過了匹配','的表情。 – pm08