forum

home / developersection / forums / need a regex to get font name and weight in a google fonts stylesheet path

Need a regex to get font name and weight in a google fonts stylesheet path

Anonymous User 2791 05-Oct-2013

Let's say I have this string:

<link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700" rel="stylesheet" type="text/css">

I need to remove the text before and after "Open+Sans:400italic,400,300,600,700" Any of you code-wizards who knows how to make a regex for this? Or is there a better way than using 


Updated on 05-Oct-2013

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By