Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.38 KB | None | 0 0
  1. <pre>
  2. <%
  3. function getcombs(str)
  4.   Set regEx = New RegExp
  5.   regEx.Global = True
  6.   regEx.IgnoreCase = True
  7.   regEx.Pattern = "[a-z]+"
  8.   Set words = regEx.Execute(str)
  9.   for each word in words
  10.     for x = 4 to 8
  11.       for y = 1 to len(word)-x+1
  12.         response.write("match: " & mid(word,y,x) & "<br />")
  13.       next
  14.     next
  15.   next
  16. end function
  17. getcombs("fire0fly#>stone new")
  18. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement