diff --git a/hsdev.cabal b/hsdev.cabal
--- a/hsdev.cabal
+++ b/hsdev.cabal
@@ -2,7 +2,7 @@
 --  see http://haskell.org/cabal/users-guide/
 
 name:                hsdev
-version:             0.1.2.2
+version:             0.1.2.3
 synopsis:            Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.
 description:
   Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references, hayoo search etc.
diff --git a/src/Text/Format.hs b/src/Text/Format.hs
--- a/src/Text/Format.hs
+++ b/src/Text/Format.hs
@@ -43,7 +43,7 @@
 infixr 1 %~
 
 (%~) :: Hole a => String -> a -> Either String String
-fmt %~ hargs = case fmt =~ "\\$({([a-zA-Z]+)})?" of
+fmt %~ hargs = case fmt =~ "\\$(\\{([a-zA-Z]+)\\})?" of
 	(pre, "", "", []) -> Right pre
 	(pre, _, post, []) -> Right $ pre ++ post
 	(pre, _, post, gs) -> do
