Regular expression

A Regular Expression is a type of text string based on a particular pattern that is used to search a set of strings of characters. In short, it is denoted as Regex or Regexp. It is a type of formal language which has a common syntax or pattern that matches for a set of strings. For example, the pattern a|b* will match a set of strings {ε, a, b, bb, bbb, ...}. The syntax rules for a Regex is different in different formalisms and hence there can be a infinite number of regular expressions for a particular set of strings. It is very difficult to explain the concept of Regex without examples. To find more about regular expression, browse our directory for tutorials and examples.

Programming Resource Home :: regular-expression

Advertisement

Advertisement




Regular expression
Tutorial Pointing and indicating matcher using regular expression
This Example describes the way to point the matcher and also indicate the index of the matcher using regular expression. For this we are going to make program named Indicating_Matcher.java. View Rating



Regular expression
Tutorial Pointing last index of the Matcher
This Example describes the way to point the matcher and also indicate the last index of the matcher using expression. View Rating



Regular expression
Tutorial Replacing the first subsequence of the input
This Example describes the way to replace only the first subsequence of the String using regular expression. For this we are going to make program named Replace_First.java. View Rating



Regular expression
Tutorial Finding a given word using regular expression
This Example describes the way to find a given word from the String and also the no of times the word exists using regular expression.For this we are going to make program named Find.java. View Rating



Regular expression
Tutorial Matching Address using regular expressions
This Example describes the way to match address using regular expression.For this we are going to make program named Matching.java. View Rating



Regular expression
Tutorial Retrieve the String using expression
This Example describes the way to retrieve the String using expression.For this we are going to make program named NotLookahead.java. View Rating



Regular expression
Tutorial Retrieving String after given Regular expression
This Example describes the way to retrieve the String after giving expression.For this we are going to make program named Lookbehind.java. View Rating



Regular expression
Tutorial Retrieving String by using Regular Expression
This Example describes the way to retrieve the String using Regular expression. For this we are going to make program named LookAhead.java. View Rating



Regular expression
Tutorial Calculating Repetingwords using Regular expression
This Example describe the way to calculate the Repeating word from the file using Regularexpression. View Rating



Regular expression
Tutorial Listing Directory using Regular expression
This Example describe the way how to list the directory by using Regularexpression. View Rating
Page:  [<<]   1   2   3     [>>]

Send your comments, Suggestions or Queries regarding this site at [email protected].

Copyright © 2004. All rights reserved.