Changes

Jump to: navigation, search

Tutorial9: Regular Expressions

27 bytes added, 08:55, 4 July 2020
Complex Regular Expressions
The problem with using literals or simple regular expressions is that general patterns are matched.
For example, the pattern “'''the'''” would be matched for larger word containing that pattern like '''there''', '''they''', '''either''', '''them''', '''their''', etc. Another problem is that you may want to search for pattern at a specific location within the string of text (like at the beginning �or or end).
There are other regular expression tools to provide more precise matches. These tools are '''complex''' and '''extended''' regular expressions.
Complex Regular Expressions use symbols to help match text for more precise or complex patterns.The most common complex regular expression symbols are displayed below:
:*'''Anchors ''' '''^ ''' , '''$''':*'''Characters .''':*'''Character Class [ ] ''' , '''[^ ]''':*'''Zero or More Occurrence *'''
===Extended Regular Expressions===
13,420
edits

Navigation menu