Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Escape in Rx
#1
How to achieve the same effect as powershell rx?

How to achieve the same effect in LA? It seems that Powershell is more elegant in this regard

qm Code:
Macro Macro15
 
Code:
Copy      Help
str t=
;win("Quick Macros - Portable - [Macro14]" "QM_Editor")

str r1=
;(?<=\(".+)-[^"]*"
str r2=
;-"
t.replacerx(r1, r2)

out t



powershell Code:
Code:
Copy      Help
$t = 'win("Quick Macros - Portable - [Macro14]" "QM_Editor")'
$t -replace '(?<=\(".+)-[^"]*"', '-"'


Forum Jump:


Users browsing this thread: 1 Guest(s)