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!

Search results for query: *

  1. maxxpress

    Help with regex

    hi guys, i managed to do it by doing Regex lastNumberPattern = new Regex(@"^(.*?)(([0]+)|([1-9]))?(\d+)(\D*)$"); thanks anyway!
  2. maxxpress

    Help with regex

    Hi all, I'm useless with regex - please help! I need to extract the last digit from the string - but here's the catch if the digit is 0001 I want only to capture the 1 not the leading 0's so far i have Regex r= new Regex(@"^(.*?)(\d+)(\D*)$"); but that doesn't work for when i have 0001...

Part and Inventory Search

Back
Top