Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expression modify
#1
Hi,

I need to delete the following red words. The following regular expression can be executed successfully in powershell, but it is not supported in QM. How do I modify it

s.fix(abc(h SCI.SCI_GETTEXTRANGE 0 &t))

https://learn.microsoft.com/en-us/dotnet...definition

Macro Macro22
 
Code:
Copy      Help
_s=
;s.fix(abc(h SCI.SCI_GETTEXTRANGE 0 &t))

_s.replacerx("abc\((?:(?>[^()]*)|\((?<Open>)|\)(?<-Open>))*(?(Open)(?!))\)")

Powershell code:
Code:
Copy      Help
$s='s.fix(abc(h SCI.SCI_GETTEXTRANGE 0 &t))';
$s -replace 'abc\((?:(?>[^()]*)|\((?<Open>)|\)(?<-Open>))*(?(Open)(?!))\)'


Messages In This Thread
Regular expression modify - by Davider - 03-12-2023, 01:40 AM
RE: Regular expression modify - by Davider - 03-12-2023, 05:24 AM
RE: Regular expression modify - by redbull2k - 03-12-2023, 05:51 PM
RE: Regular expression modify - by Davider - 03-12-2023, 09:27 PM
RE: Regular expression modify - by redbull2k - 03-12-2023, 11:44 PM
RE: Regular expression modify - by Davider - 03-13-2023, 03:16 AM
RE: Regular expression modify - by Kevin - 03-13-2023, 04:34 AM
RE: Regular expression modify - by Davider - 03-13-2023, 06:13 AM
RE: Regular expression modify - by Davider - 04-16-2023, 06:30 AM
RE: Regular expression modify - by Gintaras - 04-16-2023, 07:57 AM
RE: Regular expression modify - by Davider - 04-16-2023, 12:17 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)