Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが私が達成する必要のあるファンキーなマッチングです。
A5.1.9.11.2
になる必要があります:
A05.01.09.11.02
DOTセクションの数は、なしから多数までさまざまです。そして、文字「A」は常にそこにあり、常に1文字です。
これをソートメカニズムとして使用するために、regexp_replace()関数を使用したいと思います。ありがとう。
Oracle SQLはルックアラウンドアサーションをサポートしていません。これは、次の場合に役立ちます。
s/([0-9](?<![0-9]))/0\1/g
少なくとも2つの置換を使用する必要があります。
REGEXP_REPLACE(REGEXP_REPLACE(col, '([0-9]+)', '0\1'), '0([0-9]{2})', '\1')