mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
plugin/pcre: Replace now correctly works with \n
git-svn-id: svn://ultimatepp.org/upp/trunk@11799 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0f93a62163
commit
ff5bb63fed
1 changed files with 3 additions and 3 deletions
|
|
@ -197,13 +197,13 @@ bool RegExp::ReplacePos(String& t, int p, int q, const String& r)
|
|||
}
|
||||
|
||||
Vector<String> RegExp::Make_rv(const String& r)
|
||||
{
|
||||
RegExp reg("\\((.*?)\\)");
|
||||
{
|
||||
RegExp reg("\\(((\r|\n|.)*?)\\)");
|
||||
|
||||
Vector<String> rv;
|
||||
|
||||
while(reg.GlobalMatch(r)){
|
||||
rv.Add(reg.GetString(0));
|
||||
rv.Add(reg.GetString(0));
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue