That is a backslash followed by a forward slash. The backslash tells the regex parser to treat the next character as a literal character. Useful for matching periods, question marks, brackets, etc. A period matches any character once and an asterisk matches the previous character any number of times. .* basically means match everything.
Apologies if this is formatted incorrectly. Sending from my phone. On Fri, Oct 25, 2019 at 06:37 Maggie Q Roth <[email protected]> wrote: > what's V.*? > > Maggie > > On Fri, Oct 25, 2019 at 6:28 PM Илья Рассадин <[email protected]> wrote: > >> For example, this regex >> >> /(?<ip>[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\s+(?<path>\/.*)/ >> >> On 25.10.2019 13:23, Maggie Q Roth wrote: >> > Hello >> > >> > There are two primary types of lines in the log: >> > >> > 60.191.38.xx / >> > 42.120.161.xx /archives/1005 >> > >> > I know how to write regex to match each line, but don't get the good >> > result with one regex to match both lines. >> > >> > Can you help? >> > >> > Thanks, >> > Maggie >> >> -- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> http://learn.perl.org/ >> >> >> -- Benjamin Pendygraft
