Regex Query for automation

Hey folks,
How did u put the following statement/condition in a single regex:-
CWE- 99

Try the following regex


  1. A-Z ↩︎

1 Like

Regex Pattern: [A-Z]{3}(-\d±\d+|-\d+|- \d+)

Annotation 2020-02-26 130843



I suppose CVE means “Common Vulnerabilities and Exposures” and CWE means “Common Weakness Enumeration”.
If so, the following pattern will be better.



Guyz, thank you all for your help.
I am using an automation for mail parsing purpose. I have an IP that needs to be forwarded, the regex condition of which is specified.
With all the regex statements provided, the bot is able to distinguish CVE, not the IP, where it treats both CVE and IP the same.
Could you pls help here.
IP’s are in -,, in such formats.

is this statement valid?:-
getting issues with the syntax

@Rushi_Muni So you need to identify IP Address in Email Body ?

small correction: “)” this is missing


try this.!

@supermanPunch Yes

@Rushi_Muni I guess I had already Suggested an Answer in a Previous post of yours , didn’t that help :sweat_smile:

It has helped, but the bot is not able to distinguish both IP and CVE and treating them the same.
What should be done to differentiate them

@Rushi_Muni Can you give us a Sample Data for the Case when both the CVE and IP’s match with that Regex, We can find the difference and give you an Updated one

Sample CVE and CWE are:-

CWE- 99

Sample IP’s:-

Regex for IP used:- System.Text.RegularExpressions.Regex.Matches(item.Body,“\b\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\b”).Count>0

Regex for CVE used:-

Here’s where the bot is not able to differentiate.


Arigato :slight_smile: