0

I'd like to capture all source file lines matching the following template (actually any img tag where the url contains an angularjs interpolation):

<td><img src="rsc/kws.corn.icon.{{cure}}.png">

I tried this without success:

src="rsc/[^{]*{{[^"]*"
Stéphane de Luca
  • 12,745
  • 9
  • 57
  • 95

1 Answers1

0

Ok, the quote was missing. Here is the right regex, which I also improved:

src\s*=\s*"rsc/[^{"]*{{[^"]*"
Stéphane de Luca
  • 12,745
  • 9
  • 57
  • 95
  • The `\w*` is extremely fishy. You probably mean `\s*`. And there should be no need to escape `\{` inside character class. – nhahtdh Oct 29 '14 at 03:19