title: Java Regex - Finding specific string within a String
body: <p>I am trying to match a string that start with the set word "hotel", then a hyphen, then a word of any length, then another hyphen and finally a number of any length.</p>
  
  <p><strong>Edit:</strong> Dima gave the solution I needed in the comments of this question! Thanks Dima.</p>
  
  <p><strong>Further edit:</strong> elaborating on Dima's answer, adding capturing groups making it easier to retrieve the information entered, and correcting the last bit to only accept digits:</p>
  
  <p><code>^hotel-(.+)-(\d+)</code></p>