Posted January 10Jan 10 Did you ever learn what ^(?i)(?<word>\p{L}+\d{2,4}(?:-\w+)?)(?=\s|$)(?:.*?\k<word>.*)+$ would ever do? Do you want to? I thought I would put together a document that was created almost a decade ago involving Regular Expressions (regex). If anyone is interested, you can view the tutorial:Regular Expression Tutorial pg1Different Regular Expression Engines pg 2Literal Characters pg 3Special Characters pg 4Non-Printable Characters pg 5First Look at How a Regex Engine Works Internally pg 6Character Classes or Character Sets pg 7The Dot Matches (Almost) Any Character pg 8Start of String and End of String Anchors pg 9Word Boundaries pg 10Alternation with the Vertical Bar or Pipe Symbol pg 11Optional Items pg 12Repetition with Star and Plus pg 13Grouping with Round Brackets pg 14Named Capturing Groups pg 15Unicode Regular Expressions pg 16Regex Matching Modes pg 17Possessive Quantifiers pg 18Understanding Atomic Grouping in Regular Expressions pg 19Understanding Lookahead and Lookbehind in Regular Expressions (Lookaround) pg 20Testing Multiple Conditions on the Same Part of a String with Lookaround pg 21Understanding the \G Anchor in Regular Expressions pg 22Using If-Then-Else Conditionals in Regular Expressions pg 23XML Schema Character Classes and Subtraction Explained pg 24Understanding POSIX Bracket Expressions in Regular Expressions pg 25Adding Comments to Regular Expressions: Making Your Regex More Readable pg 26Free-Spacing Mode in Regular Expressions: Improving Readability pg 27
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.