Regex for nth line in a text file
问题 I've been trying to get this regex down and searched alot for answers What I need is to get the nth (4th in this example) line from a text file I got this down atm ^(?<=([^\n]*\n){3})[^\n]*\n But it doesn't seem to work (something about needing fixed length patterns in lookbehind) Is there any way to overcome that obstacle? Can anyone provide a correction\different regex if needed for this problem? Thanks Edit: I'm trying this regex in PowerGrep and it just doesn't work P.S: Is there a way of