I have created a BT which gives errors as output.There are few errors that includes names of people which is in uppercase.Apart from this I have other errors too. I want to remove this name from my ouput and group them together. I want a regex which excludes all uppercase words from sentences.
my output is somethinf like this as shown below.
|Given for XXX.Given for XXX.||2|
|Given for YYY.Given for YYY.||2|
|Given for ZZZ.Given for ZZZ.||2|
In the above each name is considered as a seperate count.
I want it to be grouped and hence i need to remove the names from the output.
I need the output to be
|Given for .Given for.|
I have used the below regex
|(.* for) [A-Z\s]+.(.* for) [A-Z\s]+. |(.*)|
Now my error is grouped and I am getting the other errors too...
but if the grouped error occurs...then I am getting like
|Given for .Given for.null||6|
since in regex I have given 2 conditions in regex if one condition is true it returns null for other and vice versa.
Why is the null being displayed and how can I get rid of this?
Can someone help me on this?
Answer by James K. ·
Not sure all of what's going on in the regex you tried as there seems to be a lot of unnecessary stuff, but I usually trial and error it which I can't do with yours. But what might be a better starting place is the below:
(Given for) [A-Z]+\.
Which says pull the text "Given for" from the match and match the capitals followed by a period but don't use them in the group. I expect it will be a lot easier if you don't care about the second "Given for".
Docker monitoring via DT Appmon 2 Answers