Skip to content
Discussion options

You must be logged in to vote

With the %() incantation, $1 is the reason you're seeing --quiet. If this is just a script then $1 would be the parameters passed to Murex. Which, in hindsight, isn't what you'd expect

In terms of the main ask, I think you'd be fine just with double quotes here, eg:

regexp "s/.*prettyName='(.*)'.*$/\$1/)"

Note here that I have escaped \$1


You can also use f/... to simplify the query:

regexp "f/prettyName='(.*)'"

https://murex.rocks/commands/regexp.html#find-elements

f/... might have some surprises if your string contains multiple instances of prettyName, but i don't think that's going to be a problem here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JeffMelton
Comment options

Answer selected by lmorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants