Regular Expressions 101

Community Patterns

Library, New Books

1

Regular Expression
ECMAScript (JavaScript)

/
<td><a href="(http:\/\/adi.sunyconnect.suny.edu:4610\/F\/\?request=\d{6,6}&func=find-b&find_code=sys&local_base=adi01pub)">(.*?)<b><br>(.*?) \/ (.*?)<\/b>
/
gi

Description

Used on "http://adi.sunyconnect.suny.edu:4610/adi_new_book.html" to get the URL, Call Number, Title, and Author of all the new books listed.

Submitted by Daniel Foote - 8 years ago