• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Regular Expressions > Running Regular Expressions

Running Regular Expressions

When we want to actually match our pattern against a string, we use the exec() method. This method takes the pattern and compares it to the string. The result is placed in another object (which is also be an array).

foundMatch = re.exec(ordString)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint