|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-4-24. : 11:30 am] NudeRaider -- worked too. Just ran it a couple of times. Thanks a lot. Saved me a ton of manual work[2016-4-24. : 11:27 am] NudeRaider -- Ha! that's it! Great work you two. Now lets see how it works on multiple files.[2016-4-24. : 11:25 am] NudeRaider -- Clokr_Clokr_ shouted: Ok this works: replace <p id="toptext">(.*)\r\n(.*)</p> by <p id="toptext">$1$2</p> actually, wait, I misread that. it's almost working[2016-4-24. : 11:24 am] NudeRaider -- Clokr_Clokr_ shouted: Ok this works: replace <p id="toptext">(.*)\r\n(.*)</p> by <p id="toptext">$1$2</p> <p id="toptext">$1$2</p> still finds no match. I'm 6.5.5[2016-4-24. : 11:20 am] NudeRaider -- strangely it matches the 3 parts individually. Some syntax change necessary?[2016-4-24. : 11:20 am] Clokr_ -- Ok this works: replace <p id="toptext">(.*)\r\n(.*)</p> by <p id="toptext">$1$2</p>[2016-4-24. : 11:19 am] NudeRaider -- oh man, UltraEdit matches neither (.*<p id="toptext">.*)\r\n(.*</p>)? nor without ?[2016-4-24. : 11:19 am] Lanthanide -- because we're explicitly trying to match the new line character itself, not just as part of the wildcard set[2016-4-24. : 11:18 am] Lanthanide -- but if it means, . will also include the new line character, then it's still not useful in this case[2016-4-24. : 11:15 am] Clokr_ -- LanthanideLanthanide shouted: Clokr_ but it may not be able to do find-and-replace across lines You are right, it doesn't handle new lines well at all...[2016-4-24. : 11:12 am] NudeRaider -- that stupid ad page after installing UltraEdit: "Thank you for installing UltraEdit! By the way, has anybody ever told you you've got great taste?"[2016-4-24. : 11:11 am] Lanthanide -- or at least, it's handled everything I've thrown at it; which isn't a lot and none of it has been super complex, but I've not had any problems with it[2016-4-24. : 11:08 am] Lanthanide -- considering how well notepad++ does just about everything else, you'd think they'd spend their effort on fixing the crap bits[2016-4-24. : 11:07 am] Lanthanide -- you could see if that Ultraedit I linked to before is available on windows[2016-4-24. : 11:06 am] NudeRaider -- If I make the closing tag optional it finds a match. And actually does what I want! but it doesn't stop after the tag ![]() [2016-4-24. : 11:04 am] Lanthanide -- Clokr_Clokr_ shouted: I did a fast test and it does match expressions across lines but it may not be able to do find-and-replace across lines[2016-4-24. : 11:04 am] Lanthanide -- in that case it isn't finding the linebreak because there isn't one, so again it doesn't match[2016-4-24. : 11:02 am] NudeRaider -- LanthanideLanthanide shouted: but the pattern requires the final (.*</p>) to be matched NudeRaiderNudeRaider shouted: hm... no must be soemthing else. when I close the first line with a </p> it still doesn't match [2016-4-24. : 11:02 am] Lanthanide -- but since it stops scanning the line, it fails to complete the match, so can't match anything[2016-4-24. : 11:01 am] Lanthanide -- I think it's unable to continue matching after it encounters the \r\n on the line[2016-4-24. : 11:01 am] Lanthanide -- I haven't tried to use Notepad++ for this in a long time, but I remember getting really frustrated by it's inconsistent treatment of new line characters[2016-4-24. : 11:00 am] NudeRaider -- hm... no must be soemthing else. when I close the first line with a </p> it still doesn't match[2016-4-24. : 11:00 am] Clokr_ -- Hey, that reg exp chart is nice. The one in the wikipedia page is quite messy.[2016-4-24. : 11:00 am] NudeRaider -- LanthanideLanthanide shouted: and Notepad++'s inability (IIRC) to do regex over multiple lines may just kill you here i think that's it. While hello world works, (.*<p id="toptext">.*)\r\n(.*</p>) doesn't match anything[2016-4-24. : 10:59 am] Lanthanide -- although actually thinking about it more, maybe that doesn't matter[2016-4-24. : 10:59 am] Lanthanide -- since you need to include the closing tag in the regex if you're not doing an interactive find-and-replace[2016-4-24. : 10:58 am] Lanthanide -- and Notepad++'s inability (IIRC) to do regex over multiple lines may just kill you here[2016-4-24. : 10:57 am] Lanthanide -- in proper regex tools, a simple .* should match the contents of the entire file, but I don't think Notepad++ works like that[2016-4-24. : 10:57 am] Lanthanide -- actually that should be (.*<p if="toptext" etc, the first .* also should be inside the marked section[2016-4-24. : 10:56 am] Lanthanide -- so you probably want to do: .*(<p id="toptext">.*)\r\n(.*</p>) and replace with \1<br>\2[2016-4-24. : 10:54 am] Lanthanide -- so: he(llo wor)ld replaced with \1<br> would result in: llo wor<br> |
Symmetry,
Wing Zero,
DarkenedFantasies