The Net-Brainer

The Net-Brainer (
-   NetBrain Product (
-   -   Parser - regex-globalflags (

Marvin 09-03-2019 09:47 AM

Parser - regex-globalflags

i am searching for dates with regex in the output.
The regex string is:
regex[$string:date]: ([A-Z][a-z]+\s[0-9]+\s[0-9]+)

My problem is that I only want to get the first match of the output and store this in the date variable (as string).
Most of the time I get two or more matchs as output and for them I get date variables.

How can I disable global flags for regex in netbrain?

jimmytootshoes 09-17-2019 01:25 PM

Re: Parser - regex-globalflags
Can you post some examples of the output you are parsing?

Marvin 09-19-2019 02:20 AM

Re: Parser - regex-globalflags
I avoided the problem with a python script.
In this script I used regex.findall and got all matches.

All times are GMT -4. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2009 NetBrain, Inc. All rights reserved.