Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular Expression

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
Good day
How do i find every occurence of a substring that begin with a specefied set of characters and end with another set of characters eg
string str = "src=test.pgn testing sub src=file.pgn find it"
i want to read strings that start with src and end with .pgn in the above example i want the following strings in an array "src=test.pgn" and src=file.pgn
I know regular expressions are used but i cant seem to figure out how its done.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top