Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14267
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 Aug 23 13:31:48 CEST 2025

Total time taken to generate the page: 0.04601 seconds