Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1773

Regex not fully implemented? Don’t seem to be able to use the \q regex (which means quote mark) in %@ReReplace[]

$
0
0
I’m trying to highlight a quoted section of text that is being echo’ed the screen (command parameters actually).

So I want to use regex to insert color-change ansi before the first quote (to make it orange), and after the last quote (to make it yellow).

which requires me doing a @ReRegex with pattern matching on the quotes.
I want to substitute the first quote with orange+quote.
I want to substitute the last quote with qutoe+yellow.

I can do this in Perl just fine, but %@ReRegex doesn’t...

Read more

Viewing all articles
Browse latest Browse all 1773

Trending Articles