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.7k points) 8 35 46
closed by

1 Answer

0 like 0 dislike
Best answer
by (2.6k points) 6 9 9
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.
842 questions
1,240 answers
5,546 users