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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help in regular expressions 1

Status
Not open for further replies.

royboy75

Programmer
Feb 13, 2007
114
GB
Hello,

I am looping through Strings and I need to reserve just Strings that match a certain condition. I know how to do it using the standard String functions but I would like to do it in more elegant and short way using regular expressions.
The condition is this: If the String contains this Sub String "- Validation Reports" than get it's charcters from the begining until the first "-" you find.
Which regular expression will match this requirement?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top