RegEx to find {} chars
Posted: Wed Feb 05, 2014 10:11 pm
I really like TextCrawler but I'm having trouble with a particular regex to find a CSS class. The problem is getting it to detect the brace characters. I need to find them so that I can replace the class attributes with modified ones in a backreference.
For example, I can find any one of these:
.my-class
\{
\}
But not the combination:
.my-class
\{
TextCrawler appears to ignore the escaped brace instead of treating it literally. Any ideas?
For example, I can find any one of these:
.my-class
\{
\}
But not the combination:
.my-class
\{
TextCrawler appears to ignore the escaped brace instead of treating it literally. Any ideas?