Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2015, 04:23 PM
eric.covert eric.covert is offline
Registered User
 
Join Date: Mar 2015
Posts: 1
Keyword list with white space

I am unable to match anything with a space in it. Here is an example:

Code:
.*deny
I would expect this to highlight everything left of a deny including the deny it's self. This does not seem to be the case. Only the "deny" is highlighted. Is there something that I am doing wrong?
Reply With Quote
  #2  
Old 03-18-2015, 04:41 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi eric.covert,

Thanks for the post. Currently, the keyword highlighting option doesn't support phrases or spaces. We will post to this forum thread if we do ever add the ability to match phrases or spaces.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request
The regular expression you are using will capture any non-space characters to the left of the word deny.

You may consider adding multiple keywords to get at the phrase that you want.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 03-20-2015, 01:46 PM
Casey Casey is offline
Registered User
 
Join Date: Oct 2011
Posts: 114
If it helps.. below are my regex's for 'bad stuff to see'. You may find it helpful. I have it set to display all these words as red:

on-fail.*
.*_ERR:|.*fail.*|invalid|.*reload.*
no|administratively|shut.*|never,?|deny|.*down.?
not|initializing.?|Off|1024|768|des|des56.*
telnet|half-duplex.?|\(err-disabled\)|disabled
up->down|Active|inhibit|Offline|Warning.*|Unsupported

In several cases, yes.. it would be nice to highlight the entire line. But in error cases, I've found individual word highlighting to be more helpful because you are easily alerted about the error and other important details pertaining to that error still get their proper highlights (IE: IP address/subnet mask, interfaces, etc).

If everything was in red, you may still find yourself skimming the line for the important bits of info.
Reply With Quote
  #4  
Old 02-17-2016, 10:28 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,228
Hi all,

Just to update the thread with the latest, with respect to Todd's post here, SecureCRT's product director has provided this additional information about why only "keyword" highlighting is supported at this time, not "phrases or substrings" (words with spaces).

Quote:
A while back, we investigated adding support for highlighting phrases and the performance hit was significant. We don't have a timeline for implementing this feature because we will need to do some more investigation to determine if this can be implemented in a way that is practical.
Posted February 17, 2016.

SecureCRT v7.3.6 is the official release.

SecureCRT v8.0 is in beta release.

This URL allows users to check their SecureCRT upgrade eligibility.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 02-28-2017, 12:11 PM
akalb akalb is offline
Registered User
 
Join Date: Aug 2012
Posts: 5
Keyword list with white space

Hello,

I just gave 8.1.1 a try and see it still not supported. So I'll stick with my aged version again.

Kind Regards,

Andreas

P.S.: I entered a feature-request already in the past.
Reply With Quote
  #6  
Old 02-28-2017, 12:45 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 974
Quote:
Originally Posted by akalb View Post
I just gave 8.1.1 a try and see it still not supported. So I'll stick with my aged version again.
Andreas,

We'll post to this thread if the feature's been implemented. And, since you sent us email earlier requesting this feature, we'll also be sure to notify you directly should this ever become available in SecureCRT.

Kind regards.
--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
  #7  
Old 12-17-2019, 05:48 PM
Maureen's Avatar
Maureen Maureen is offline
VanDyke Product Director
 
Join Date: Feb 2004
Location: Albuquerque, NM
Posts: 1,570
The ability to use spaces in keywords (including regular expressions) has been added to SecureCRT 8.7, which is currently in beta testing. It can be downloaded here.

Maureen

Last edited by bgagnon; 12-18-2019 at 07:37 AM. Reason: Broken link
Reply With Quote
  #8  
Old 01-30-2020, 03:46 PM
kelassal kelassal is offline
Registered User
 
Join Date: Jan 2020
Posts: 1
I have tried highlighting an entire line in 8.7 but that still does not work. Heres what the expression look like.

.*connected.*

I want to highlight this entire line which includes the word "connected":

Fa1/8 S; 200nsw02 Fa1/ connected trunk a-full a-100 10/100BaseTX



Quote:
Originally Posted by Maureen View Post
The ability to use spaces in keywords (including regular expressions) has been added to SecureCRT 8.7, which is currently in beta testing. It can be downloaded here.

Maureen
Reply With Quote
  #9  
Old 01-30-2020, 04:38 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 974
Quote:
Originally Posted by kelassal View Post
I have tried highlighting an entire line in 8.7 but that still does not work. Heres what the expression look like.

.*connected.*

I want to highlight this entire line which includes the word "connected":

Fa1/8 S; 200nsw02 Fa1/ connected trunk a-full a-100 10/100BaseTX
That should work as long as:
  • The keyword entry is marked with the option "Keyword is regular expression" enabled
  • There aren't any other matching expressions that are higher priority (included above this one in your Keyword list)
  • The "Match style" is set to "Phrases and substrings" in the Terminal > Keyword Highlighting > Advanced category of your session's options.

As a tip...

In order to make sure that the "connected" word is separated by spaces, the pattern would include that designation to have one or more (+) whitespace chars (\s) before and after. For example:

Code:
.*\s+connected\s+.*
Here's an example expression that marks 'connect' lines in green along with a 'nonconnect' version highlighting lines in red.
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:15 PM.