U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » RegExp: newlines in replacement string (ReplaceGlobal() does not process replacement strings containing newlines)
Re: RegExp: newlines in replacement string [message #49530 is a reply to message #49518] Sat, 24 February 2018 18:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
I think this is just accidental.

I have fixed it this way:


Vector<String> RegExp::Make_rv(const String& r)
{
	RegExp reg("\\(((\r|\n|.)*?)\\)");
	
	Vector<String> rv;
	
	while(reg.GlobalMatch(r)){
		rv.Add(reg.GetString(0));
	}
	
	return rv;
}

 
Read Message
Read Message
Read Message
Previous Topic: Filtering streams for bz2
Next Topic: StaticText : Add missing GetData/SetData overloads
Goto Forum:
  


Current Time: Sat Sep 12 21:27:45 GMT+2 2026

Total time taken to generate the page: 0.00888 seconds