Saturday, May 16, 2020

Regular Expression


  1. To search for unicode character sets used in certain languages, one can use \p properties, i.e. perluniprops. Such as the following to search for a part of strings composed Arabic letters and/or spaces.
    grep '[\s\p{Arabic}]*'
    https://perldoc.perl.org/perluniprops.html#Properties-accessible-through-%5cp%7b%7d-and-%5cP%7b%7d

No comments:

Post a Comment

Writing a post in Markdown in Blogger

Following articles are helpful. * [【令和最新版】Blogger で Markdown を用いて記事を書く方法](https://qiita.com/hoge_fu-ga/items/267ea5ad4f8c120eaeb8) * [Bl...