The format of Perl is very confusing.
I have the script to get the variables 'username1' and 'password1' from a text file with the following format:
'<b>Username: username1</b> and <b>Password: password1</b>'
Using the script (snippet):
($username) = $page =~ /<b>Username:\s(.*?)<\/b>/i;
($password) = $page =~ /<b>Password:\s(.*?)<\/b>/i;
How do I format this script to get the variables 'username1' and 'password1' from text formatted in this way? (I've tried everything I can think of):
***Note that there is a space between 'Username"' and '</b>' and also a space between '</b>' and 'password1'
The formatting of the script is very confusing. What do all the backslashes and (\s)'s mean? Could someone help me to understand the way this is formatted? Thanks.