Created
December 3, 2018 11:19
-
-
Save pandanote-info/62dcbc5b9017acd39959512b5e50462a to your computer and use it in GitHub Desktop.
MariaDBで否定先読みを実行しようと試み、失敗した際の出力ファイル。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB [(none)]> select regexp_replace('<img src="https://pandanote.info/wordpress/wp-content/uploads/2018/12/P_20181201_191300_vHDR_Auto_a-233x300.jpg" alt="" width="233" height="300" class="alignnone size-medium wp-image-3517" />','(?<!<a href=[^>]*>)(<img src=.*wp-image-(\\d+)[^>]*>)','<a href="https://pandanote.info/?attachment_id=\\2" rel="attachment wp-att-\\2">\\1</a>') as regexp_replace_result; | |
ERROR 1139 (42000): Got error 'lookbehind assertion is not fixed length at offset 18' from regexp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment