in reply to Need RegEx assistance
If you can't fit the file into memory, or fear doing regexps that span lines, you could do a two-pass substitution. On the first pass, build up a hash that maps [get] to the trailing component of the URI, then rewind the file and make the subsitution on the second pass. This lets you use simple regexps.
If you haven't done regexps that match multiple lines, now's your chance. Go with method 1, and add to your bag of tricks.
|
|---|