JavaScript > Regular Expressions Modifiers

JavaScript > Regular Expressions Modifiers


In this section we will learn about the Regular Expression Modifiers in JavaScript.

Regular expression is nothing but the sequence of characters that forms a search pattern. Regular expression can be a single character, or a more complex pattern. Regular expression most oftenly used to perform all type of text search()and text replace() operations. 

Search pattern is used for searching the data in a text and it describes what you are searching for.

Example:

var pattern = /Funda/g;

In the above code snippet /Funda/g is a regular expression, Funda is a pattern which is used in search, g is a modifier which is used to perform the global search across the string. If "g" is not specified at the last of the regular expression, JavaScript searches only for the first occurance of the matched pattern.

To learn regular expression in easy way, read this article.

Read posts under JavaScript > Regular Expressions Modifiers

16 posts found
  1. Case insensitive search
  2. Global search
  3. Starts with search
  4. Finding each characters
  5. Finding unmatched characters
  6. Finding digits
  7. Not between numbers
  8. Finding more than one words
  9. Matching sequence of numbers
  10. Matching sequence of X to Y characters
  11. Matching atleast N digits
  12. Match end characters
  13. Match beginning characters
  14. Matches string followed by particular character
  15. Match not followed by particular character
  16. ignoreCase Property



Write for us






Hosting Recommendations