void () { FindModel findModel = FindManagerTestUtils.configureFindModel("^*$"); String prefix = "<foo bar=\""; String text = prefix + "\" />"; findModel.setSearchContext(FindModel.SearchContext.IN_STRING_LITERALS); findModel.setRegularExpressions(true); LightVirtualFile file = new LightVirtualFile("A.xml", text); FindResult findResult = myFindManager.findString(text, prefix.length(), findModel, file); assertTrue(findResult.isStringFound()); }