e107help.org Q&A
0 like 0 dislike

Could somebody write to me regex how to get href or src from those lines? 

<link href="/css/bs4-dynamic-fields-form-2.min.cssrel="stylesheetmedia="screen">

<script src="/cdn-cgi/apps/head/qx0HK83qWJ5I3r2xnETN-ETfo6s.js"></script>

I need to use it for e107::js() and e107::css() 





in Plugins by (1.9k points) 15 46 57
closed by

1 Answer

0 like 0 dislike
Best answer
by (2.7k points) 7 10 10
selected by
Thanks.  Really.

Just note that it wasn't needed at the end. There was more than one link in those strings. so, at last, it was so easy:

e107::css('inline', "</style>".$string1."<style>");

e107::js('footer-inline',$string2 );

Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
929 questions
1,330 answers
2,302 users