Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-13-2019, 01:23 PM
dlong dlong is offline
Registered User
 
Join Date: Dec 2015
Posts: 15
Keyword Highlight for Number Formats

Is there a way to add a keyword which will highlight a string based on this format?

nnn n nn nn

Basically, it is a 3-digit number followed by a space, then a 1-digit number followed by a space, etc.
For those in the telecom world, it is a Nortel/Avaya TN I am hoping to have highlighted automatically in a session.

Last edited by dlong; 11-13-2019 at 01:37 PM.
Reply With Quote
  #2  
Old 11-13-2019, 04:29 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 267
Hi dlong,

The following regular expression can be used to achieve your goal as long as all of the n's are numbers:

Code:
\d{3}\s\d\s\d{2}\s\d{2}
Does that work for you?
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 11-13-2019, 06:06 PM
dlong dlong is offline
Registered User
 
Join Date: Dec 2015
Posts: 15
Hi Brittney. Thanks for the reply. When I try to enter the regular expression above, the dialog comes up:

"The specified regular expression '\d{3}\s\d\s\d{2}\s\d{2}' is invalid. A regular expression cannot contain spaces."
Reply With Quote
  #4  
Old 11-13-2019, 06:15 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 267
Hi dlong,

Please send an email to support@vandyke.com, with ***ATTN: Brittney, Forum Thread #13973*** in the subject field, along with your download account email address and I will provide you with a link to download a pre-release version that supports regular expressions with spaces.
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 11-20-2019, 08:27 AM
dlong dlong is offline
Registered User
 
Join Date: Dec 2015
Posts: 15
Thanks Brittney, the beta version works really well in highlighting keyword regular expressions with spaces now.
Reply With Quote
  #6  
Old 11-20-2019, 10:46 AM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 267
Hi dlong,

I am happy to hear that you are enjoying the new keyword highlighting functionality! Feel free to reach out to us with any additional questions/feedback.
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


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

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 02:32 AM.