VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Keyword Highlight for Number Formats (https://forums.vandyke.com/showthread.php?t=13973)

dlong 11-13-2019 01:23 PM

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.

berdmann 11-13-2019 04:29 PM

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?

dlong 11-13-2019 06:06 PM

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."

berdmann 11-13-2019 06:15 PM

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.

dlong 11-20-2019 08:27 AM

Thanks Brittney, the beta version works really well in highlighting keyword regular expressions with spaces now.

berdmann 11-20-2019 10:46 AM

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. :)


All times are GMT -6. The time now is 01:28 AM.