1 / 14

Regular Expression

This guide provides a comprehensive look at regular expressions (regex) in JavaScript, derived from expert sources. It includes definitions, practical examples, and target strings such as common user agent formats. We cover fundamental concepts like simple matching, searching for brackets, ranges, and negation, as well as positioning and anchors. Learn about iteration using metacharacters, and dive deeper into POSIX character class definitions. Ideal for developers seeking to enhance their web technology skills with regex patterns.

kineks
Télécharger la présentation

Regular Expression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Regular Expression JavaScript Web Technology Derived from:http://www.zytrax.com/tech/web/regex.htm

  2. Definitions

  3. Our Example Target Strings • Throughout this guide we will use the following as our target strings: STR1 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) STR2 Mozilla/4.75 [en](X11;U;Linux2.2.16-22 i586)

  4. Simple Matching Search For

  5. Brackets, Ranges and Negation

  6. Brackets, Ranges and Negation Search For

  7. Positioning (or Anchors)

  8. Positioning (or Anchors) Search For

  9. Iteration 'metacharacters'

  10. Iteration 'metacharacters' Search For

  11. More 'metacharacters'

  12. Example: More 'metacharacters'

  13. POSIX Character Class Definitions

More Related