-
JavaScript有两种方式创建一个正则表达式:
第一种方式是直接通过/正则表达式/写出来,第二种方式是通过new RegExp('正则表达式')创建一个RegExp对象。
两种写法是一样的
``` javascript
var re1 = /ABC\-001/;
var re2 = new RegExp('ABC\\-001');
re1; // /ABC\-001…
-
### General Question
regexp_extract存在一些问题,报出Invalid regex expression
跟这个issue比较相似 #8429
现在我们比较多的sql都需要用到这个特性,看starrock源代码用到的正则表达式库是google的[RE2库](https://github.com/google/re2)
已知的存在问题:
…
-
Hi, I am using [Composer collector](https://qossmic.github.io/deptrac/collectors/#composer-collector) and have to list a large list of packages.
For example, i have many Symfony packages:
```
d…
-
"slimselect.es.js" has a syntax error.
Firefox says "Uncaught SyntaxError: export declarations may only appear at top level of a module". When the code is reindented, it appears that the class Rend…
-
It is easy to implement based on https://github.com/ClickHouse/ClickHouse/pull/55614
regexp - subset of re2 syntax https://github.com/google/re2/wiki/Syntax.
-
Hi,
It validates some incorrect emails as valid, like `emn178@gmail..com`
Change Devise.email_regexp
from
``` Ruby
/\A[^@\s]+@([^@\s]+\.)+[^@\W]+\z/
```
to
``` Ruby
/\A[\w+\-.]+@[a-z\d\-]+(\.[a-z…
-
## Regular expressions
- [Atom](https://github.com/petrosh/snippetrosh/issues/15#issuecomment-357443954)
- [JS RegExp intro](https://github.com/petrosh/snippetrosh/issues/15#issuecomment-353406549…
-
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
the regexp for instance.domain.com is incorrect when there are more "." in …
-
I can't include preset-theme v0.13.0 to unocss 0.63.4 and nuxt 3. Get some ts error
Type 'Preset' is not assignable to type 'PresetOrFactory | PresetOrFactory[]'.
Type 'Preset' is not assignable…
-
### Problem Statement
CrateDB contains a `regexp_matches` table function, but for some use cases a regular scalar would be the better fit. One use-case is using them in generated columns, where tab…