SoftPerfect Network Scanner

Regex replacement support

Started by Mike

Mike

Regex replacement support   04 January 2019, 12:47

Hi, Merry Christmas.

I would like to know if Netscan supports substituting a numbered group on regex, or substitution of elements or replacement patterns?

For example:
Capture a MAC A5:7E:88:D4:B1:2F
And then use regex grouping and replacement to obtain A57E88D4B12F
SoftPerfect Support forum - Andrew avatar image

Re: Regex replacement support   04 January 2019, 16:46

The latest release didn't support regex replacement, but you are making a good point here.

We've just added replacement expression support in version 7.1.9 which can be downloaded from the Network Scanner home page.

For your particular task, use this as the regular expression:
([0-9A-F]{2}).?
and this as the replacement expression:
\1

Sample output:
SoftPerfect support forum

Reply to this topic

Sometimes you can get the answer faster if you try the forum search and/or have a look at the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

  *******    ******    ********  **    **  ********  
 **     **  **    **   **        ***   **  **     ** 
 **         **         **        ****  **  **     ** 
 ********   **   ****  ******    ** ** **  **     ** 
 **     **  **    **   **        **  ****  **     ** 
 **     **  **    **   **        **   ***  **     ** 
  *******    ******    ********  **    **  ********  

Message: