Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do any of the flavors of regex in Regex Buddy coincide with NSRegularExpression (ICU) regex?

NSRegularExpression says its flavor of regex is "ICU." I have RegexBuddy, which supports a bunch of different flavors, but none of them calls itself "ICU." But is one of them ICU under another name?

like image 989
William Jockusch Avatar asked Dec 04 '11 17:12

William Jockusch


People also ask

What is ICU regex?

ICU's Regular Expressions package provides applications with the ability to apply regular expression matching to Unicode string data. The regular expression patterns and behavior are based on Perl's regular expressions.

What flavor of regex does JavaScript use?

JavaScript's regular expression flavor is part of the ECMA-262 standard for the language. This means your regular expressions should work exactly the same in all implementations of JavaScript.

How do you match in regex?

To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ). E.g., \. matches "." ; regex \+ matches "+" ; and regex \( matches "(" . You also need to use regex \\ to match "\" (back-slash).

What does \\ mean in regex?

The backslash character (\) in a regular expression indicates that the character that follows it either is a special character (as shown in the following table), or should be interpreted literally. For more information, see Character Escapes. Escaped character. Description. Pattern.


1 Answers

ICU is based on Perl regular expressions.

like image 97
Tomalak Avatar answered Sep 26 '22 06:09

Tomalak