How to determine that the line starts with a certain letter?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
14 views
In General, you need to make it so that if the user begins typing in the input symbols and they will begin with a "+7", it will run a certain action if something else, then a different action.
by | 14 views

1 Answer

0 like 0 dislike
if ('^\\+7'.test('test string')) { // action if beginning with +7 } else { // otherwise }
by

Related questions

110,608 questions
257,187 answers
0 comments
40,796 users