I need to cut all css and js links from page, now Im using that regex:
([^ ()]*\.(?:css|js)\b)
Its works fine but its also cuts some links like:
href="stylesheets/{asfas}asf{,,.,sfasfas]F{asfas]fAS/MyFontsWebfontsKit.css
What I need to add to my regex to exclude that invalid links. I think I need exclude chars like '{},.' from regex matcher?
Im using JAVA Pattern/Macther to compile my regex.
Pls dont suggest me usage of html parsers(like Jsoup and etc).

find()andgroup()give me an expected result