Thread: Regex pattern
View Single Post
  #2 (permalink)  
Old 12-10-2007, 10:26 PM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Escape it with a double backslash (since you cant have a single backslash):
Code:
String patternStr = "*\\-*.html";
Reply With Quote