Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-08-18 02:38
Flavor·JavaScript

/
[\p{Script=Bengali}]+
/
ug
Open regex in editor

Description

This selects Bengali using the script tag. It works in Javascript, using: text.split(/[^\p{Script=Bengali}]+/ug) or text.match(/[\p{Script=Bengali}]+/ug) This Regex was provided by <a href="https://stackoverflow.com/users/2627243/peter-seliger">Peter Seliger</a>

Submitted by anonymous