code_junkie

Help with Regex patterns

Nov 13th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ^AB.[^.]+$
  2. ^AB(?!.[^.]+$)
  3.  
  4. ^AB.[^.]*$
  5. ^AB(?!.[^.]*$)
  6.  
  7. "^AB.[^.]*$"
  8.  
  9. "^AB(..*..*)?$" or "'^AB(..*..*)?" (depending on the nature of your regex engine)
  10.  
  11. AB.CD
  12. AB.CDX
  13. AB.whatever
  14. AB
  15. AB.CD.CD
  16. AB.CD.
  17. AB.CD.CD
Add Comment
Please, Sign In to add comment