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 Print Matchingwords using Regular expression
This Example describe the way to print the matching word from the file using Regularexpression. View Rating



Regular expression
Tutorial Replacing String using Regularexpression
This Example describe the way to replace a String using Regularexpression. View Rating



Regular expression
Tutorial Split Demo using RegularExpression
This Example describe the way to Split a String using Regularexpression. View Rating



Regular expression
Tutorial Interchanging String using RegularExpression
This Example describe the way to split a String and interchange the index of string using Regularexpression. View Rating



Regular expression
Tutorial Matching Pattern using Regularexpression
This Example describe the way to match a pattern with the text 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.