Uneven Technology

Wednesday, March 25, 2015

RegEx - Useful Patterns

Description
RegEx Pattern
Sample Data & Result
Search for all numbers except ones prefixed with #
(?<!\#)\b\d{5,}\b

1234567-JUL13
Ck #1234567
145A1 12345 05/14.











Here is a good online tester: http://regexr.com

Quick Cheat Sheet: http://www.rexegg.com/regex-quickstart.html#quantifiers
Posted by Sean T. at 11:30 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2019 (2)
    • ►  Dec (1)
    • ►  Jul (1)
  • ►  2016 (2)
    • ►  May (1)
    • ►  Jan (1)
  • ▼  2015 (80)
    • ►  Dec (52)
    • ►  May (1)
    • ►  Apr (1)
    • ▼  Mar (10)
      • iOS - Must Know Features
      • iOS - Yahoo Related Issues
      • Windows - A Low Disk Trigger on Windows 2008 Server
      • SSRS - How to Eliminate Merged Cells Issue When Ex...
      • MSSQL - How to Check A Numeric Value
      • SSRS - Repeat Header Section for A Tablix
      • SSRS - Adding Page Break
      • SSRS - To Drill Through A Report Using A Popup Window
      • SSRS - To See Report Execution History
      • RegEx - Useful Patterns
    • ►  Feb (1)
    • ►  Jan (15)
  • ►  2013 (10)
    • ►  Nov (2)
    • ►  Jul (8)
  • ►  2012 (7)
    • ►  Aug (1)
    • ►  May (6)
Simple theme. Powered by Blogger.