Js regular matches html a tag .pdf file

clipboard.png
articles are uploaded in the background, and the front end needs to find the .pdf suffix in html to perform some js operations on the tags. I hope the god can help write a rule to help find all the .pdf files

.
Sep.02,2021

I don't understand whether you want to find the an element with the pdf file, or do you want the full address of pdf? Whichever it is, regularization is not recommended.

$("a:contains(.pdf)")
//
Menu