简体   繁体   中英

python3 match everything before CVE

I have patterns in python3 im trying to match like:

# 1
Multiple cross-site scripting (XSS) vulnerabilities in Sitecore CMS 9.0.1 and earlier
    
# 2
CVE-2019-11198

# 3
6.1 - Medium

# 4
August 05, 2019

how can i parse each of the above 4 lines into separate variables? Im thinking of a routine for #1 that says look for whatever is BEFORE CVE and append to a variable

Thanks

I figured it out - as usual python has the. split string function which served my needs. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM