Jump to content

StringRegExpReplace question in a complex structure?


Recommended Posts

@mikell Now I understand better :) $1 $2 $3 👍 Thank you

Also I would like to add it from a variable but removing slash marks cause?

$aDir = @ScriptDir & "\myfolder"
$s = '"asdf":{"asdf_blabla":"The part I want to replace","asdf_blabla"'
ConsoleWrite(StringRegExpReplace($s, '("asdf":{"asdf_blabla":")(.*?)(","asdf_blabla")', '$1' & $aDir & '$3') & @CRLF)

"asdf":{"asdf_blabla":"C:UsersUSERDesktopmyfolder","asdf_blabla"

Edited by youtuber
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...