What does this regular expression stand for (.*)@(.*). I came to know that (.*) matches any character with period any number of times.
But I couldn't understand the meaning properly. Also, what does two of them separated by @ mean?
What does this regular expression stand for (.*)@(.*). I came to know that (.*) matches any character with period any number of times.
But I couldn't understand the meaning properly. Also, what does two of them separated by @ mean?
 
    
     
    
    .*@.* matches any string containing the @ character
Example of strings that this pattern would match 
@@qeasrrd@qw3e@as112d(.*)@(.*)  would just return whatever is before and after the @ character
Example:
@ would return two empty strings '' , '' @qe rule will return '' and 'qe' asrrd@ would return 'asrrd' and ''qw3e@as112d would return 'qw3e' and 'as112d'  
    
     
    
    (.*)@(.*) can match any of the following:
@, .@., ..@., jbkbhjh...@...njbh ...
* means one or many characters.
so this regex means a @ symbol enclosed by any number of chars
Also, what does two of them separated by @ mean
Answer to this is: the @ symbol is required for a text to match this regex
