Re: [Interest] QRegularExpression for replace

2022-12-01 Thread Tony Rietwyk
On 2/12/2022 6:43 am, Scott Bloom wrote: Im looking for a way using QRE to do something like the following auto regEx = QRegularExpression( “(?.*)” ); if ( regEx.match( string ) )     auto newString = regEx.replace( string, “${name}” ); Using the standard set of regex subsitution

[Interest] QRegularExpression for replace

2022-12-01 Thread Scott Bloom
Im looking for a way using QRE to do something like the following auto regEx = QRegularExpression( "(?.*)" ); if ( regEx.match( string ) ) auto newString = regEx.replace( string, "${name}" ); Using the standard set of regex subsitutions Is this something anyone is looking at? Or