1# RegExp literals are not supported 2 3Rule ``arkts-no-regexp-literals`` 4 5**Severity: error** 6 7Currently, ArkTS does not support RegExp literals. Use library call with 8string literals instead. 9 10 11## TypeScript 12 13 14``` 15 16 let regex: RegExp = /bc*d/ 17 18``` 19 20## ArkTS 21 22 23``` 24 25 let regex: RegExp = new RegExp("/bc*d/") 26 27``` 28 29 30