import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Example {
public static void main(String[] args) {
final String regex = "^\\s{7}([-A]?\\d+)\\s+((.|\\n)*?)\\n^\\s{24}([A-Z]{0,2}\\d{3}(\\.\\d+)?(\\s(\\w+))?)";
final String string = " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n\n"
+ " Collection: Lending Collection\n"
+ " Info. Type: BK Books\n"
+ " -2658 The theocratic kingdom of Our Lord Jesus, the Christ, as covenanted in the Old Testament and presented in the New \n"
+ " Testament. Pref. by Wilbur M. Smith. Biographical sketch by John H. Stoll.\n"
+ " 231.7\n"
+ " Peters, George Nathaniel Henry, 1825-1909\n"
+ " Missing\n"
+ " 21/11/1991 0.00\n"
+ " / LC\n"
+ " -3107 The four gospels and Acts of the apostles, in Greek : with English notes : together with the epistles and apocalypse : the \n"
+ " complete text of the New Testament\n"
+ " GR220.48 SPE c.1 1873\n"
+ " Spencer, Jesse Ames, 1816-1898.\n"
+ " Missing\n"
+ " 3/09/1992 / LC 0.00\n"
+ " -4822 The parables of our Saviour : expounded and illustrated / William M. Taylor.\n\n"
+ " 226.8 Ta21p c.1\n"
+ " Taylor, William Mackergo, 1829-1895\n"
+ " Missing\n"
+ " 4/08/1995 / LC 0.00\n"
+ " 22479000007302 Apologetic for filioque in medieval theology / Dennis Ngien.\n"
+ " 231.044 NGI\n"
+ " Ngien, Dennis, 1958-\n"
+ " Available\n"
+ " 2/06/2010 002 / LC 88.35\n\n"
+ " 22479000007310 Integral mission : the way forward: essays in honour of Dr. Saphir P. Athyal / editor, C.V. Matthew.\n"
+ " 266.54 MAT\n"
+ " Matthew, C V\n"
+ " Available\n"
+ " 2/06/2010 002 / LC 41.10\n\n\n"
+ " Page 1\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007336 Hearing the New Testament : strategies for interpretation / edited by Joel B. Green.\n\n"
+ " 225.601 GRE\n"
+ " Availableel B, 1956-\n"
+ " 8/07/2010 002 23.10\n"
+ " / LC\n"
+ " 22479000007344 New Testament exegesis : a handbook for students and pastors / Gordon D. Fee.\n"
+ " 225.6 FEE c.1\n"
+ " Fee, Gordon D\n"
+ " Available\n"
+ " 8/07/2010 002 / LC 27.35\n\n"
+ " 22479000007633 Sha'arei Talmon : studies in the Bible, Qumran, and the Ancient Near East presented to Shemaryahu Talmon / edited by \n"
+ " Michael Fishbane and Emanuel Tov with the assistance of Weston W. Fields.\n"
+ " 221.6 TAL\n"
+ " Talmon, Shemaryahu, 1920-\n"
+ " Available\n"
+ " 15/07/2010 008 / LC 0.00\n"
+ " 22479000007666 Globalization and its discontents / Joseph E. Stiglitz.\n"
+ " 337 STI\n"
+ " Stiglitz, Joseph E.\n"
+ " Available\n"
+ " 19/07/2010 008 / LC 0.00\n\n"
+ " 22479000007674 Fresh wind, fresh fire : what happens when God's spirit invades the heart of his people / Jim Cymbala with Dean Merrill.\n"
+ " 269 CYM\n"
+ " Cymbala, Jim, 1943-\n"
+ " Available\n"
+ " 19/07/2010 008 / LC 0.00\n\n\n\n\n\n\n"
+ " Page 2\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007690 The leading edge : the Haggai Institute story / John Edmund Haggai.\n\n"
+ " 266.007 HAG\n"
+ " Availableohn Edmund.\n"
+ " 19/07/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000007708 The concise Greek-English lexicon of the New Testament / Frederick William Danker ; with Kathryn Krug.\n"
+ " 487.4 DAN c.1\n"
+ " Danker, Frederick W.\n"
+ " Available\n"
+ " 22/07/2010 008 / LC 81.30\n\n"
+ " 22479000007773 Systematic theology : volume two; the word of life/ Thomas C. Oden.\n"
+ " 232.8 ODE\n"
+ " Oden, Thomas C\n"
+ " Available\n"
+ " 27/07/2010 002 / LC 42.15\n"
+ " 22479000007781 Hinterland theology : a stimulus to theological construction / Alan P. F. Sell.\n"
+ " 285.0942 SEL\n"
+ " Sell, Alan P F\n"
+ " Available\n"
+ " 27/07/2010 002 60.75\n"
+ " / LC\n"
+ " 22479000007799 Orthodox and modern : studies in the theology of Karl Barth / Bruce L. McCormack.\n"
+ " 230.044 MCC\n"
+ " McCormack, Bruce L.\n"
+ " Available\n"
+ " 27/07/2010 002 / LC 0.00\n\n"
+ " 22479000007807 Acts for everyone / Tom Wright.\n"
+ " 226.6077 WRI pt. 2\n"
+ " Wright, N T (Nicholas Thomas)\n"
+ " Available\n"
+ " 30/07/2010 002 / LC 13.80\n\n"
+ " Page 3\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007815 Acts for everyone / Tom Wright.\n\n"
+ " 226.6077 WRI pt. 1\n"
+ " Available T (Nicholas Thomas)\n"
+ " 30/07/2010 002 13.80\n"
+ " / LC\n"
+ " 22479000007823 Middle Egyptian : an introduction to the language and culture of hieroglyphs / James P. Allen.\n"
+ " 493.15 ALL\n"
+ " Allen, James P, 1945-\n"
+ " Available\n"
+ " 2/08/2010 008 / LC 0.00\n\n"
+ " 22479000007831 Mentoring for spiritual growth : sharing the journey of faith / Tony Horsfall.\n"
+ " 253.53 HOR\n"
+ " Horsfall, Tony.\n"
+ " Available\n"
+ " 5/08/2010 002 / LC 16.35\n"
+ " 22479000007849 A global ethic : the declaration of the Parliament of the world's Religions / edited by Hans Kung and Karl-Josef Kuschel.\n"
+ " 291.5 KUN\n"
+ " Kung, Hans, 1928-\n"
+ " Available\n"
+ " 5/08/2010 002 40.55\n"
+ " / LC\n"
+ " 22479000007864 The mystery of marriage : meditations on the miracle\n"
+ " 306.81 MAS\n"
+ " Mason, Mike 1953-\n"
+ " Available\n"
+ " 10/08/2010 002 / LC 13.05\n\n\n\n\n\n\n\n"
+ " Page 4\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007872 No future without forgiveness / Desmond Mpilo Tutu.\n\n\n\n\n"
+ " 968.06 TUT\n"
+ " Tutu, Desmond Mpilo\n"
+ " Available\n"
+ " 16/08/2010 008 / LC 0.00\n\n"
+ " 22479000007880 Scribal culture and the making of the Hebrew Bible / Karel van der Toorn.\n"
+ " 221.66 TOO\n"
+ " Toorn, K Van Der\n"
+ " Available\n"
+ " 16/08/2010 008 / LC 0.00\n"
+ " 22479000007898 God's dream team a call to unity / Tommy Tenney.\n\n"
+ " 262.72 TEN\n"
+ " Tenney, Tommy, 1956-\n"
+ " Available\n"
+ " 16/08/2010 008 / LC 0.00\n"
+ " 22479000007906 Passion and purity : learning to bring your love life under Christ's control / Elisabeth Elliot.\n"
+ " 241.66 ELL\n"
+ " Elliot, Elisabeth.\n"
+ " Available\n"
+ " 16/08/2010 008 / LC 0.00\n\n"
+ " 22479000007914 Resurrecting Jesus : the earliest Christian tradition and its interpreters / Dale C. Allison, Jr.\n"
+ " 232.908 ALL\n"
+ " Allison, Dale C\n"
+ " Available\n"
+ " 16/08/2010 008 / LC 0.00\n\n\n\n"
+ " Page 5\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007922 Introducing apologetics : cultivating Christian commitment / James E. Taylor.\n\n"
+ " 239 TAY\n"
+ " Availableames E, 1956-\n"
+ " 16/08/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000007930 Can Asians think / Kishore Mahbubani.\n"
+ " 306.095 MAH\n"
+ " Mahbubani, Kishore.\n"
+ " Available\n"
+ " 17/08/2010 001 / LC 0.00\n\n"
+ " 22479000007955 Fracture : the cross as irreconcilable in the language and thought of the biblical writers / Roy A. Harrisville.\n"
+ " 232.4 HAR\n"
+ " Harrisville, Roy A\n"
+ " Available\n"
+ " 19/08/2010 001 / LC 0.00\n"
+ " 22479000007963 The Zondervan NIV Bible commentary / general editors, Kenneth L. Barker and John R. Kohlemberger III.\n"
+ " 220.7 BAR v.1\n"
+ " Barker, Kenneth L.\n"
+ " Available\n"
+ " 19/08/2010 001 0.00\n"
+ " / LC\n"
+ " 22479000007971 Conspiracy of kindness : [a refreshing new approach to sharing the love of Jesus with others] - no guilt, no stress, low risk & \n"
+ " high grace / Steve Sjogren.\n"
+ " 269.2 SJO\n"
+ " Sjogren, Steve\n"
+ " Available\n"
+ " 19/08/2010 001 / LC 0.00\n\n\n\n\n\n\n"
+ " Page 6\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000007997 Wisdom & creation : the theology of wisdom literature / Leo G. Perdue.\n\n"
+ " 223.06 PER\n"
+ " Availableeo G.\n"
+ " 13/09/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008003 Public theology and political economy : Christian stewardship in modern society / Max L. Stackhouse.\n"
+ " 261.8 STA\n"
+ " Stackhouse, Max L.\n"
+ " Available\n"
+ " 20/08/2010 002 / LC 68.90\n\n"
+ " 22479000008029 Mao : the unknown story / Jung Chang, John Halliday.\n"
+ " 951.05092 CHA\n"
+ " Chang, Jung, 1952-\n"
+ " Available\n"
+ " 23/08/2010 001 / LC 0.00\n"
+ " 22479000008045 Knowing the will of God / Bruce Walte with Jerry MacGregor.\n"
+ " 248.4 WAL\n"
+ " Waltke, Bruce K.\n"
+ " Available\n"
+ " 23/08/2010 001 0.00\n"
+ " / LC\n"
+ " 22479000008052 C. H. Spurgeon / J.C. Carlile.\n"
+ " 286.1092 SPU\n"
+ " Carlile, John C (John Charles), d. 1941\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n\n"
+ " 22479000008060 Understanding the accuser / David Alsobrook.\n"
+ " 235.47 ALS\n"
+ " Alsobrook, David.\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n\n"
+ " Page 7\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008078 Putting the Gospel first : the best of the Spring Harvest World Alive Weeks / edited by David Porter.\n\n"
+ " 269.24 POR\n"
+ " Availableavid, 1945 Aug. 10-\n"
+ " 26/08/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008094 Genuine salvation : regeneration, repentance, coming to Christ, saving faith / Arthur W. Pink; with a foreword by William C. \n"
+ " Nichols.\n"
+ " 234 PIN\n"
+ " Pink, Arthur Walkington, 1886-1952\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n\n"
+ " 22479000008102 Heaven and earth in little space : the re-enchantment of liturgy / Andrew Burnham.\n"
+ " 264.02 BUR\n"
+ " Burnham, Andrew, 1948-\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n"
+ " 22479000008110 The paradise of God : renewing religion in an ecological age / Norman Wirzba.\n"
+ " 231.765 WIR\n"
+ " Wirzbu, Norman.\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n\n"
+ " 22479000008128 To all the brethren : a text-linguistic and rhetorical approach to I Thessalonians / Bruce C. Johanson.\n"
+ " 227.8106 JOH\n"
+ " Johanson, Bruce C\n"
+ " Available\n"
+ " 26/08/2010 008 / LC 0.00\n\n\n\n\n\n\n"
+ " Page 8\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008151 Searching for meaning : an introduction to interpreting the New Testament / [edited by] Paula Gooder.\n\n"
+ " 225.601 GOO\n"
+ " Availableaula.\n"
+ " 3/09/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008169 The forge of Christendom : the end of days and the epic rise of the West / Tom Holland.\n"
+ " 270.2 HOL\n"
+ " Holland, Tom.\n"
+ " Available\n"
+ " 3/09/2010 002 / LC 0.00\n\n"
+ " 22479000008177 Studies in the personal names of Genesis 1-11 / Richard S. Hess.\n"
+ " 221.922 HES\n"
+ " Hess, Richard S.\n"
+ " Available\n"
+ " 3/09/2010 002 / LC 0.00\n"
+ " 22479000008185 Creation through wisdom : theology and the new biology / Celia E. Deane-Drummond.\n"
+ " 261.55 DEA\n"
+ " Deane-Drummond, Celia.\n"
+ " Available\n"
+ " 6/09/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008193 Tolkien on fairy-stories / edited by Verlyn Flieger and Doulglas A. Anderson.\n"
+ " 398.2 TOL\n"
+ " Flieger, Verlyn, 1933-\n"
+ " Available\n"
+ " 6/09/2010 008 / LC 0.00\n\n"
+ " 22479000008201 Becoming a person of influence : how to positively impact the lives of others / John C. Maxwell, Jim Dornan.\n"
+ " 158.2 MAX\n"
+ " Maxwell, John C, 1947-\n"
+ " Available\n"
+ " 6/09/2010 008 / LC 0.00\n\n"
+ " Page 9\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008219 Digital biology : how nature is transforming our technology and our lives / Peter J. Bentley.\n\n"
+ " 570.1 BEN\n"
+ " AvailablePeter, 1972-\n"
+ " 7/09/2010 002 25.00\n"
+ " / LC\n"
+ " 22479000008227 Our posthuman future : consequences of the biotechnoloy revolution / Francis Fukuyama.\n"
+ " 660.6 FUK\n"
+ " Fukuyama, Francis\n"
+ " Available\n"
+ " 7/09/2010 002 / LC 20.15\n\n"
+ " 22479000008243 Business @ the speed of thought : using a digital nervous system / Bill Gates with Collins Hemingway.\n"
+ " 658.4038 GAT\n"
+ " Gates, Bill, 1955-\n"
+ " Available\n"
+ " 16/09/2010 002 / LC 48.20\n"
+ " 22479000008250 The church / Edmund P. Clowney ; Gerald Bray, general editor.\n"
+ " 262 CLO\n"
+ " Clowney, Edmund P.\n"
+ " Available\n"
+ " 17/09/2010 002 11.85\n"
+ " / LC\n"
+ " 22479000008300 Time is running short / Sid Roth ; [foreword by Derek Prince].\n"
+ " 236 ROT\n"
+ " Roth, Sid.\n"
+ " Available\n"
+ " 20/09/2010 008 / LC 0.00\n\n"
+ " 22479000008318 Haggai, Zechariah / Mark J. Boda.\n"
+ " 224.97077 BOD\n"
+ " Boda, Mark J.\n"
+ " Available\n"
+ " 22/09/2010 002 / LC 30.30\n\n"
+ " Page 10\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008326 Reading between texts: intertextuality and the Hebrew Bible / [edited by] Danna Nolan Fewell.\n\n"
+ " 221.66 FEW\n"
+ " Availableanna Nolan\n"
+ " 22/09/2010 002 45.10\n"
+ " / LC\n"
+ " 22479000008334 A history of the church in the middle ages / F. Donald Logan.\n"
+ " 270.3 LOG\n"
+ " Logan, F Donald\n"
+ " Available\n"
+ " 22/09/2010 002 / LC 60.90\n\n"
+ " 22479000008342 Christianity and Roman society / Gillian Clark.\n"
+ " 270.1 CLA\n"
+ " Clark, Gillian (E Gillian)\n"
+ " Available\n"
+ " 22/09/2010 002 / LC 54.20\n"
+ " 22479000008359 Living the Christian year : time to inhabit the story of God: an introduction and devotional guide / Bobby Gross; foreword by \n"
+ " Lauren Winner.\n"
+ " 242.3 GRO\n"
+ " Gross, Bobby.\n"
+ " Available\n"
+ " 22/09/2010 002 / LC 20.40\n\n"
+ " 22479000008375 The wisdom of pixar : an animated look at virtue / Robert Velarde.\n"
+ " 791.43 VEL\n"
+ " Velarde, Robert, 1969-\n"
+ " Available\n"
+ " 27/09/2010 002 / LC 9.35\n\n\n\n\n\n\n"
+ " Page 11\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008383 Keeping God's earth : the global environment in biblical perspective / edited by Noah J. Toly and Daniel I. Block.\n\n"
+ " 261.8 KEE\n"
+ " Availableh.\n"
+ " 27/09/2010 002 15.80\n"
+ " / LC\n"
+ " 22479000008391 Sacred companions : the gift of spiritual friendship & direction / David G. Benner ; foreword by Larry Crabb.\n"
+ " 253.53 BEN\n"
+ " Benner, David G.\n"
+ " Available\n"
+ " 28/09/2010 002 / LC 9.35\n\n"
+ " 22479000008409 Friends in a broken world : thoughts on friendship from the Emaus Road / Soo-Inn Tan ; [foreword by R. Paul Stevens].\n"
+ " 158.2 TAN c.1\n"
+ " Tan, Soo-Inn\n"
+ " Available\n"
+ " 29/09/2010 002 / LC 5.70\n"
+ " 22479000008417 Protestant ethic and the spirit of Capitalism / Max Weber; translated by Talcott Parsons ; with a foreword by R. H. Tawney.\n"
+ " 306.6 WEB\n"
+ " Tawney, Richard Henry, 1880-1962.\n"
+ " Available\n"
+ " 29/09/2010 002 8.60\n"
+ " / LC\n"
+ " 22479000008425 The medieval church : a brief history Joseph H. Lynch.\n"
+ " 270 LYN\n"
+ " Lynch, Joseph H, 1943-\n"
+ " Available\n"
+ " 29/09/2010 002 / LC 127.05\n\n"
+ " 22479000008433 What happened at vatican II / John W. O'Malley.\n"
+ " 262.52 OMA\n"
+ " O'Malley, John W\n"
+ " Available\n"
+ " 29/09/2010 002 / LC 16.30\n\n"
+ " Page 12\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008441 The westminster assembly : reading its theology in historical context / Robert Letham.\n\n"
+ " 230.52 LET\n"
+ " Availableobert\n"
+ " 29/09/2010 002 21.50\n"
+ " / LC\n"
+ " 22479000008458 The works of Anne Bradstreet / edited by Jeannine Hensley ; foreword by Adrienne Rich.\n"
+ " 821.4 BRA\n"
+ " Bradstreet, Anne, 1612?-1672.\n"
+ " Available\n"
+ " 29/09/2010 002 / LC 14.60\n\n"
+ " 22479000008466 The church in the shadow of the mosque : Christians and Muslims in the world of Islam / Sidney H. Griffith.\n"
+ " 270.0917 GRI\n"
+ " Griffith, Sydney Harrison.\n"
+ " Available\n"
+ " 29/09/2010 002 / LC 37.60\n"
+ " 22479000008490 Spiritual manpower / J. Oswald Sanders.\n"
+ " 220.92 SAN\n"
+ " Sanders, J Oswald (John Oswald), 1902-1992\n"
+ " Available\n"
+ " 1/10/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008508 On writing well : the classic guide to writing nonfiction / William Zinsser.\n"
+ " 808.042 ZIN\n"
+ " Zinsser, William Knowlton.\n"
+ " Available\n"
+ " 1/10/2010 008 / LC 0.00\n\n"
+ " 22479000008516 Obadiah through Malachi / William P. Brown.\n"
+ " 224.9077 BRO\n"
+ " Brown, William P, 1958-\n"
+ " Available\n"
+ " 1/10/2010 008 / LC 0.00\n\n"
+ " Page 13\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008524 Pastors of promise : pointing to character and hope as the keys to fruitful shepherding / Jack Hayford.\n\n"
+ " 259.081 HAY\n"
+ " AvailableJack W\n"
+ " 1/10/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008532 The case for God / Karen Armstrong.\n"
+ " 211 ARM\n"
+ " Armstrong, Karen, 1944-\n"
+ " Available\n"
+ " 1/10/2010 008 / LC 0.00\n\n"
+ " 22479000008540 The Orthodox Church in the Byzantine Empire / J.M. Hussey.\n"
+ " 281.909 HUS\n"
+ " Hussey, J M (Joan Mervyn)\n"
+ " Available\n"
+ " 4/10/2010 002 / LC 42.70\n"
+ " 22479000008557 The crusades : a history / Jonathan Riley-Smith.\n"
+ " 909.07 RIL\n"
+ " Riley-Smith, Jonathan Simon Christopher, 1938-\n"
+ " Available\n"
+ " 4/10/2010 002 19.30\n"
+ " / LC\n"
+ " 22479000008565 The crusades : a reader\n"
+ " 909.07 CRU\n"
+ " Allen, S J (Sarah Jane), 1959-\n"
+ " Available\n"
+ " 4/10/2010 002 / LC 35.35\n\n\n\n\n\n\n\n"
+ " Page 14\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008581 Progymnasmata : Greek textbooks of prose composition and rhetoric / translated with introductions and notes by George A. \n"
+ " Kennedy.\n"
+ " 808.0481 PRO\n"
+ " Kennedy, George Alexander, 1928-\n"
+ " Available\n"
+ " 4/10/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000008599 Christianity and the rhetoric of empire : the development of Christian discourse / Averil Cameron.\n"
+ " 270.1 CAM\n"
+ " Cameron, Averil.\n"
+ " Available\n"
+ " 4/10/2010 008 / LC 0.00\n\n"
+ " 22479000008607 Reading renunciation : asceticism and Scripture in early Christianity / Elizabeth A. Clark.\n"
+ " 248.47 CLA\n"
+ " Clark, Elizabeth A (Elizabeth Ann), 1938-\n"
+ " Available\n"
+ " 4/10/2010 008 / LC 0.00\n"
+ " 22479000008615 Soli Deo Gloria / edited by Angela Teo and Ong Be Eng.\n"
+ " 266 TEO\n"
+ " Teo, Angela\n"
+ " Available\n"
+ " 25/10/2010 002 / LC 9.55\n\n"
+ " 22479000008771 Do all to the glory of God / Watchman Nee.\n"
+ " 248.4 NEE\n"
+ " Nee, Watchman, 1902-1972\n"
+ " Available\n"
+ " 7/10/2010 001 / LC 0.00\n\n\n\n\n\n\n"
+ " Page 15\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008847 The cost of commitment / John White.\n\n"
+ " 248.4 WHI\n"
+ " Availablehn, 1924 March 5-2002\n"
+ " 7/10/2010 001 0.00\n"
+ " / LC\n"
+ " 22479000008862 Who is Allah in Islam? / Abd-Al-Masih.\n"
+ " 297.211 ABD\n"
+ " Abd-Al-Masih\n"
+ " Available\n"
+ " 18/10/2010 008 / LC 0.00\n\n"
+ " 22479000008870 A concise lexicon to the biblical languages / Jay P. Green, Sr., general editor, Maurice A. Robinson, associate general editor ; \n"
+ " associate editors, Robert W. Gibbs ... [et al.].\n"
+ " 492.4 CON\n"
+ " Green, Jay P\n"
+ " Available\n"
+ " 18/10/2010 008 / LC 0.00\n"
+ " 22479000008896 The complete idiot�s guide to understanding Islam / by Yahiya Emerick.\n"
+ " 297 EME\n"
+ " Emerick, Yahiya.\n"
+ " Available\n"
+ " 18/10/2010 008 / LC 0.00\n\n"
+ " 22479000008987 The pilgrim's progress from this world to that which is to come : delivered under the similitude of a dream, wherein is \n"
+ " discovered the manner of his setting out, his dangerous journey and safe arrival at the desired country / John Bunyan.\n"
+ " 828.407 BUN\n"
+ " Bunyan, John, 1626-1688\n"
+ " Available\n"
+ " 21/10/2010 008 / LC 0.00\n\n\n\n\n\n"
+ " Page 16\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000008995 Fanny Crosby / by Bernard Ruffin.\n\n"
+ " 811.4 CRO\n"
+ " Availableernard, 1947-\n"
+ " 21/10/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009019 Addicted to danger : a memoir / Jim Wickwire and Dorothy Bullitt.\n"
+ " 796.522092 WIC\n"
+ " Wickwire, Jim, 1940-\n"
+ " Available\n"
+ " 4/11/2010 001 / LC 0.00\n\n"
+ " 22479000009027 Thornton Wilder : collected plays & writings on theater / [J.D. McClatchy, selected the texts and wrote the notes for this \n"
+ " volume].\n"
+ " 812.52 WIL\n"
+ " Wilder, Thornton, 1897-1975\n"
+ " Available\n"
+ " 4/11/2010 001 / LC 0.00\n"
+ " 22479000009084 A history of Christ Church Melaka of the diocese of West Malaysia in the Province of S.E. Asia : buit in 1753, the oldest \n"
+ " functioning Protestant church in S.E. Asia / by S. Batumalai ; foreword by D. Ford.\n"
+ " 293.95951 BAT\n"
+ " Batumalai, S\n"
+ " Available\n"
+ " 4/11/2010 001 / LC 0.00\n\n"
+ " 22479000009100 First and second things : essays on theology and ethics / C.S. Lewis ; edited by Walter Hooper.\n"
+ " 200.1 LEW\n"
+ " Lewis, C S (Clive Staples), 1898-1963\n"
+ " Available\n"
+ " 6/11/2010 001 / LC 0.00\n\n\n\n\n\n"
+ " Page 17\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000009142 State, society and religious engineering : towards a Reformist Buddhism in Singapore / Kuah-Pearce Khun Eng.\n\n"
+ " 294.337095957 KUA\n"
+ " Availablece Khun Eng\n"
+ " 8/11/2010 001 0.00\n"
+ " / LC\n"
+ " 22479000009159 From Nicaea to Chalcedon : a guide to the literature and its background / Frances M. Young.\n"
+ " 270.2 YOU\n"
+ " Young, Frances M. (Frances Margaret)\n"
+ " Available\n"
+ " 8/11/2010 001 / LC 0.00\n\n"
+ " 22479000009167 Hudson Taylor in early years : the growth of a soul\n"
+ " 266.51 TAY 1988 Ann. ed.\n"
+ " Taylor, Frederick Howard, 1862-\n"
+ " Available\n"
+ " 8/11/2010 001 / LC 0.00\n"
+ " 22479000009175 A Christian's pocket guide to Buddhism / Alex G. Smith.\n"
+ " 261.243 SMI\n"
+ " Smith, Alex G.\n"
+ " Available\n"
+ " 8/11/2010 002 3.05\n"
+ " / LC\n"
+ " 22479000009183 Buddhism : a Christian exploration and appraisal / Keith Yandell and Harold Netland.\n"
+ " 261.243 YAN\n"
+ " Netland, Harold A, 1955-\n"
+ " Available\n"
+ " 8/11/2010 002 / LC 18.10\n\n"
+ " 22479000009191 Two ears but only one mouth : lessons from Yunnan; insights from Proverbs / by Tan Lai Yong.\n"
+ " 266 TAN\n"
+ " Tan, Lai Yong, 1961-\n"
+ " Available\n"
+ " 8/11/2010 002 / LC 10.50\n\n"
+ " Page 18\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000009209 Wikinomics : how mass collaboration changes everything / Don Tapscott and Anthony D. Williams.\n\n"
+ " 303.48 TAP\n"
+ " Available Don, 1947-\n"
+ " 15/11/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009225 Testament / compiled and edited by Philip Law.\n"
+ " 220.5206 TES\n"
+ " Law, Philip\n"
+ " Available\n"
+ " 15/11/2010 008 / LC 0.00\n\n"
+ " 22479000009233 \"Let the little children come to me\" : childhood and children in early Christianity / Cornelia B. Horn & John W. Martens.\n"
+ " 270.1083 HOR\n"
+ " Horn, Cornelia B\n"
+ " Available\n"
+ " 15/11/2010 008 / LC 0.00\n"
+ " 22479000009241 Psalm 119 : the exaltation of Torah / by David Noel Freedman.\n"
+ " 223.206 FRE\n"
+ " Freedman, David Noel, 1922-\n"
+ " Available\n"
+ " 15/11/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009282 The Ten Commandments : ethics for the twenty-first century / Mark F. Rooker ; series editor: E. Ray Clendenen.\n"
+ " 241.5 ROO\n"
+ " Rooker, Mark F.\n"
+ " Available\n"
+ " 16/11/2010 001 / LC 0.00\n\n"
+ " 22479000009290 Battles of the Bible / Brenda Lewis.\n"
+ " 933 LEW\n"
+ " Lewis, Brenda.\n"
+ " Available\n"
+ " 18/11/2010 008 / LC 0.00\n\n"
+ " Page 19\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000009365 Letters of Francis A. Schaeffer : spiritual reality in the personal Christian life / edited with introductions by Lane T. Dennis.\n\n"
+ " 267.13 SCH\n"
+ " Available, Francis A (Francis August), 1912-1984\n"
+ " 6/12/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009373 Going public with your faith : becoming a spiritual influence at work / William Carr Peel and Walt Larimore\n"
+ " 269.2 PEE\n"
+ " Peel, William Carr\n"
+ " Available\n"
+ " 6/12/2010 008 / LC 0.00\n\n"
+ " 22479000009381 Social-science commentary on the Letters of Paul / Bruce J. Malina, John. J. Pilch.\n"
+ " 227.067 MAL\n"
+ " Malina, Bruce J.\n"
+ " Available\n"
+ " 6/12/2010 008 / LC 0.00\n"
+ " 22479000009407 The concept of biblical theology : an Old Testament perspective / James Barr.\n"
+ " 230.0411 BAR\n"
+ " Barr, James, 1924-2006.\n"
+ " Available\n"
+ " 6/12/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009415 Mission in the twenty-first century : exploring the five marks of global mission / edited by Andrew Walls and Cathy Ross.\n"
+ " 266.009 MIS\n"
+ " Walls, Andrew F (Andrew Finlay)\n"
+ " Available\n"
+ " 6/12/2010 008 / LC 0.00\n\n"
+ " 22479000009423 1 & 2 Samuel / David G. Firth.\n"
+ " 222.4077 FIR\n"
+ " Firth, David G.\n"
+ " Available\n"
+ " 6/12/2010 008 / LC 0.00\n\n"
+ " Page 20\n\n\n\n\n\n"
+ " BGST\n"
+ " 10/07/2023 Items List By Collection 13:47:16\n"
+ " From Creation Date: 1/01/1900 From Location: From Collection: LC\n"
+ " To Creation Date: 10/07/2023 To Location: ZZZZZZZZZZZZZZZZ To Collection: LC\n\n"
+ " Item No. Title/Author/Issue Id/Issue Title\n"
+ " Call No./Suffix/Vol/Status\n"
+ " Creation Date Create ID Location/Collection Price\n"
+ " ------------------------------------------------------------------------------------------------------------------\n"
+ " 22479000009431 The charismatic organization : eight ways to grow a nonprofit that builds buzz, delights donors, and energizes employees / \n"
+ " Shirley Sagawa, Deborah Jospin ; foreword by Jonathan M. Tisch.\n"
+ " 658.4 SAG\n"
+ " Sagawa, Shirley, 1961-\n"
+ " Available\n"
+ " 6/12/2010 008 0.00\n"
+ " / LC\n"
+ " 22479000009449 The Greek New Testament\n"
+ " 220.48 UBS c.1\n"
+ " United Bible Societies.\n"
+ " Available\n"
+ " 7/12/2010 002 / LC 59.80\n\n"
+ " 22479000009456 Following Jesus, the servant king : a biblical theology of covenantal discipleship / Jonathan Lunde.\n"
+ " 232.8 LUN\n"
+ " Lunde, Jonathan, 1960-\n"
+ " Available\n"
+ " 7/12/2010 002 / LC 29.05\n"
+ " 22479000009464 Justified in the Spirit : creation, redemption, and the triune God / Frank D. Macchia.\n"
+ " 234.7 MAC\n"
+ " Macchia, Frank D, 1952-\n"
+ " Available\n"
+ " 7/12/2010 002 / LC 32.20\n\n"
+ " 22479000009472 The gospel of John / J. Ramsey Michaels.\n"
+ " 226.5 MIC\n"
+ " Michaels, J Ramsey\n"
+ " Available\n"
+ " 7/12/2010 002 / LC 65.45\n\n\n\n\n\n\n"
+ " Page 21\n\n\n\n\n\n";
final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);
final Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
System.out.println("Full match: " + matcher.group(0));
for (int i = 1; i <= matcher.groupCount(); i++) {
System.out.println("Group " + i + ": " + matcher.group(i));
}
}
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Java, please visit: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html