'Difficulty in create regex [duplicate]

40

I'm having trouble checking in React Js if a value is is any of the following combinations

no spaces in starting
Ramaining accept anything(number , operators, letters)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source