I looked and the closest answer I got was capturing filename from url without extension
So I have this cshtml:
<script src="@Url.Content("~/Scripts/javascript.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/javascript2.js")" type="text/javascript"></script>
i tried using this regex:
(?!.+[Ss]cripts+\/)\/+.+\.js
However, using Rad regex designer i am getting this result
- /javascript.js
- /javascript2.js
how can I capture just this
- javascript (without .js)
- javascript2 (without .js)
I will then use a replace expression
$&.min.
to come out with the final result
<script src="@Url.Content("~/Scripts/javascript2.min.js")" type="text/javascript"></script>
thanks in advance for the help.