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() 

Thanks

 

 

 

closed
in Plugins by (1.7k points) 11 37 50
closed by

1 Answer

0 like 0 dislike
Best answer
by (2.6k 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.
852 questions
1,248 answers
2,171 comments
5,726 users