Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
[\p{Script=Bengali}]+
/
ug

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 - 3 years ago