We don't bite newbies here... much | |
PerlMonks |
Re: How to color the regex captured groups?by kcott (Archbishop) |
on Aug 13, 2022 at 05:15 UTC ( [id://11146136]=note: print w/replies, xml ) | Need Help?? |
G'day ovedpo15, I see others have shown you how to access the captured text. "I came a cross with the Term::ANSIColor module which can help me color the string without writing the color codes myself." I wasn't sure if you were asking for help using Term::ANSIColor. In case you were, here's a demo. I do recall that I found the documentation difficult to follow when I first used it. By the way, it's a core module: no need to install it.
Prints:
— Ken
In Section
Seekers of Perl Wisdom
|
|