Regex on Network Scan

Hi there
i’d need some help with hosts that are added via Network Scan to a folder (which works like a charm actually).
I’d like to keep the hostnames but strip the found DNS suffix “c.dns.weird-long-whatever.internal” to have it replaced with “correct-suffix.com
I tried (c.\dns.\weird-long-whatever.\internal) to (correct-suffix.com) but this does not work. I tried this in Notepad++ and it works. I guess i do not understand how the regex subgroups work :slight_smile:
Has anyone a hint for me

BR

Hi,
try something like this: (.*).c.\dns.\weird-long-whatever.\internal as search string and \1. correct-suffix.com as replacement.

Karl

1 Like

Hi Karl
thank you so much. Excactly this did it :slight_smile:
Have a nice weekend

BR

Hi Thom,
you’re welcome :slight_smile:

Karl

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.