-6

I want to find in visual studio (C#) in WPF all the occurrences of the pattern:

Content="

and after the " I want to find only the occurrences that do not continue with {

for example:

I want to find: Content="This is a button"

I do not want to find: Content="{StaticResource ThisIsAButton}"

I am very bad at regular expression.

Any Idea ? Thanks

user1902346
  • 799
  • 1
  • 12
  • 21
  • Try this regex: `/"[^{]*"/` – bejado Mar 15 '17 at 21:37
  • 1
    Testing some expressions out and researching online is a prime way to get better at regex. I always find this helpful: https://msdn.microsoft.com/en-us/library/az24scfc(v=vs.110).aspx – Broots Waymb Mar 15 '17 at 21:38

1 Answers1

0

Thanks. Found the answer using the idea of bejado.

Content="([^{]*)"

user1902346
  • 799
  • 1
  • 12
  • 21