Issue
Can someone help me with the regular expression to find and select code inside a specific css class in eclipse for eg: I have a class:
.addContentLink {
position: relative;
left: 470px;
}
so I want to select code inside the opening and closing braces....thanks in advance.
Solution
(?s).*?\{(.*?)\}.*?
Please see the demo
http://regex101.com/r/uU0kC7/1
Edited
(?s)\.addContentLink.*?\{(.*?)\}.*?
This will work for one specific class .But if there are multiple then a pattern would be needed.
Answered By - vks
Answer Checked By - Cary Denson (JavaFixing Admin)