VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Highlight keywords case insensitive (https://forums.vandyke.com/showthread.php?t=13425)

w00t 03-01-2019 07:28 AM

Highlight keywords case insensitive
 
Iím wondering if itís possible to do case insensitive regex match for keywork highlights?

/(ethernet)/i

Would match:

ethernet
Ethernet
ETHERNET
eThErNeT

Instead I have to do something like this:

(ethernet|Ethernet|ETHERNET|eThErNeT)

or

([eE][tT][hH][eE][rR][nN][eE][tT])

Which makes it quite annoying when dealing with ethernet/fast/gig/ten/hundred etc. Very long and bad regex to simulate insensitive matching.

Any ideas?

berdmann 03-01-2019 10:07 AM

2 Attachment(s)
Hi w00t,

SecureCRT does not currently support the regex case insensitivity modifier, (?i). I have submitted a feature request on your behalf to implement this functionality in SecureCRT. Should a future release of SecureCRT include this functionality, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include "Feature Request - Forum Thread #13425" in the subject line.

That being said, keyword highlighting in SecureCRT is case insensitive by default. If you add the word "ethernet" to your keyword highlighting list with the "Match case" option disabled, the word ethernet will be highlighted regardless of case.

For Example:

https://forums.vandyke.com/attachmen...1&d=1551457994

https://forums.vandyke.com/attachmen...1&d=1551458065

Does regular keyword highlighting work for you?


All times are GMT -6. The time now is 02:35 PM.