Translate

22 Şubat 2021 Pazartesi

replacePattern


https://regexr.com/

<a href="https://deneme/">https://deneme/</a>




var replacePattern = /(\<a([^>]*?)(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;
resp.eulaTextUrl = resp.eulaTextUrl.replace(replacePattern'$1?openInExternalBrowser=true" target="_blank');

Hiç yorum yok:

Yorum Gönder

Bu Blogda Ara