0 votes
in React Hooks by
What is character class subtraction in Regular expressions?

1 Answer

0 votes
by

Want to exclude set of character from matched text then use character class subtraction.

syntax :  [Base_group -[Exclude_group]]

[0-5-[23]]

given input data array is  {"12","145",""1054}

output is array is  {"145",""1054} 2 excluded so that "12" not getting selected.

...