Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

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

Chapter 8. Unicode > Item 76. Match Unicode characters and properties

Item 76. Match Unicode characters and properties

Unicode gives you much more flexibility in matching characters with a regex. Instead of the rather limited character classes that you may already know, you can now match not only literal characters, but also properties of characters. Unicode characters know a little about themselves.

Match specific characters

Matching a specific character is straightforward. You can match it either by its name or by its hexadecimal value. If you know the code point, you can use that directly in \x{}:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint