I am understanding that the function takes three parameters, and understand what they are.. but I can’t figure out how to say – Start here . take data . end here.
Is this found in the regex? Or am I way off?
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.
Yes, where to start and stop parsing the data is a detail of the regular expression itself. You can control such processing using the character sets and repetition characters (i.e. + to match 1 or more occurrence, * for 0 or more occurrences etc) Additionally, you have the ^ character to specify the start of a line and the $ character to signify the end of the line.