regex - Regular Expression to find CVE Matches -


i pretty new concept of regex , hoping expert user can me craft right expression find matches in string. have string represents lot of support information in vulnerabilities data. in string series of cve references in format: cve-2015-4000. can provide me sample regex on finding occurrences of ? obviously, numeric part of changes throughout string...

generally should include previous efforts in question, expect match, etc. since aware of format , easy one...

cve-\d{4}-\d{4,7} 

this matches first cve- 4-digit number year identifier , 4 7 digit number identify vulnerability per new standard.

see in action here.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -