Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: Regex - best way?

$
0
0
Yep... much better... turned into function... Thank you Sir!

CODE:

;################################################################################
condenseLines(srcStr, targStr)
;################################################################################
{
; removes empty lines between similar entries

; mikeyww - https://www.autohotkey.com/boards/viewtopic.php?f=82&t=128176#p566115
n := '(\d{4}[^\t]+\t' targStr ')[^\v]*\R\K\R+(?=(?1))'
return RegExReplace(srcStr, n)
}

Statistics: Posted by andymbody — 44 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles