Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Regex to remove blank lines

  • Please log in to reply
15 replies to this topic
  • Members
  • 30 posts
  • Last active: Jun 18 2015 06:11 PM
  • Joined: 05 Jun 2014

There is an extra parenthesis in the options. And the U option is not needed:

combinedList := "
Afganistán<option value=""10148"">Afghanistan</option>
Albania<option value=""10149"">Albania</option>
Alemania<option value=""4"">Germany</option>

combinedList := RegExReplace(combinedList, "`am)^[^<]+")
MsgBox, % combinedList


The new regex worked perfectly, thank you again. I didn't need to do the join :)