Computer Science, asked by sory, 1 year ago

how to validate a white spaces in java script language...

Answers

Answered by lfstone3
0
For checking if a string contains white space use a matcher and call its find method.
Attachments:

sory: how to use trim function
lfstone3: what?
Answered by VISHALKUMARV22
2

Answer:

^ matches the start of the string.

\s+ means at least 1, possibly more, spaces.

$ matches the end of the string.

Similar questions