私は、テキストの次のブロックを持っている: /textname%C3%B3n-name-test/13-theme/020-alecl%C3%B3n-more-text-in-theme/03-more-and-more-text
PHPでhtmlで書かれたテキストブロックからRegexを使って具体的なURLを抽出するには?
私は、次の例があります: Link to regex php
感謝を私は抽出する必要が
<div class="view view-views-fichas view-id-views_fichas view-display-id-block_4 view-dom-id-a77b24219bd9d1b93008f7ac4fac8979">
<div class="view-content">
<!-- THEME DEBUG -->
<!-- CALL: theme('views_view_unformatted') -->
<!-- BEGIN OUTPUT from 'profiles/tema/modules/contrib/views/theme/views-view-unformatted.tpl.php' -->
<div>
<!-- THEME DEBUG -->
<!-- CALL: theme('views_view_fields') -->
<!-- BEGIN OUTPUT from 'profiles/tema/modules/contrib/views/theme/views-view-fields.tpl.php' -->
/textname%C3%B3n-name-test/13-theme/020-alecl%C3%B3n-more-text-in-theme/03-more-and-more-text
<!-- END OUTPUT from 'profiles/tema/modules/contrib/views/theme/views-view-fields.tpl.php' -->
</div>
<!-- END OUTPUT from 'profiles/tema/modules/contrib/views/theme/views-view-unformatted.tpl.php' -->
</div>
テキストは言うものです。
これは 'strip_tags'で最初に実行し、その正規表現をプレーンテキストで使用する方がずっと簡単です。 – apokryfos