Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-10-31 08:18
Flavor·PCRE2 (PHP)

/
(?<Servername>[\w. ()]+)=#(?<Type>\d+)#0%(?<IP>[\w.]+)%(?<port>\d+)%%%([\w.-]+)%([\d-]+)%%%([\w.-]+)%%\d%([\w.-]+)%([\w.-]+)%%%([\w.-]+)%([\w.-]+)%([\w.-]+)%([\w.-]+)%%\d+%%\d%\d%\d#
/
gm
Open regex in editor

Description

Below regex pattern help to extract needful information from Portable export of SSH sessions. Although not complete, can help data extraction from export file.

Submitted by anonymous