Netbrain
Home NetBrain Product One-Skill-at-a-Time Search Mark Forums Read
Go BackThe Net-BrainerNetBrain Product Parser - regex-globalflags

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-03-2019, 08:47 AM
Marvin Marvin is offline
 
Join Date: Sep 2019
Posts: 2
Default Parser - regex-globalflags

Hello,

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?
Reply With Quote
Old 09-17-2019, 12:25 PM
jimmytootshoes jimmytootshoes is offline
 
Join Date: Feb 2018
Posts: 13
Default Re: Parser - regex-globalflags

Can you post some examples of the output you are parsing?
Reply With Quote
Old Yesterday, 01:20 AM
Marvin Marvin is offline
 
Join Date: Sep 2019
Posts: 2
Default Re: Parser - regex-globalflags

I avoided the problem with a python script.
In this script I used regex.findall and got all matches.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -4. The time now is 10:59 PM.
Powered by vBulletin
Copyright 2000-2010 Jelsoft Enterprises Limited.
Copyright 2009 NetBrain, Inc. All rights reserved.