String can contain anything, but must have one asterisk (*) throughout the string and that asterisk can be anywhere in the string.
Also string should not contain any blank spaces.
Following are valid strings:
test*
*_test
test*something
Following are invalid strings:
test_**
**_test
test*something*
test *something
test *
testsomething
*
Someone please help me writing a regex for the above scenario.
 
     
     
     
    