Recently I downloaded a source (LevBot) and then I see this line:
} elsif($text =~ /^slaps $levbot_nick/i) {
- But what
/^and/ido? - Why to use they?
I think this is regular expression, I’m right?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
/Delimiter denoting start of regex (The char/is not part of the regex)^Matches the start of a line/Delimiter for the end of the regex (not part of the regex)iFlag to make the regex case insensitiveOther flags possible are:
gGlobalsDot matches new line charactersxExtended – ignores whitespaces in the pattern and allows commentsmMultiline mode.