Hi All, from two previous posts we talked about regular expressions. From this post I’m going to show you some examples of regular expressions using in the real world. Please refer following twp posts to get an idea about regex if you don’t have,
Let’s see few examples,
- To match html tags.
- For a trim function.
- To match IP address
- To match numbers with decimal
- To match a date
- To match a line containing a given word
- To match a line not containing a given word
- To match words duplicate near
For three blog posts we talked about regulal expressions. From previous two posts we learnt regular expressions and from this post we did some examples. So I hope now you have a clear idea about regular expressions. See you soon with another interesting topic. Thank You!