Members in Shoutbox
None.

Shoutbox Search
Search for:


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.
Pages: < 1 « 1761 1762 1763 1764 1765 … 3578 >

[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:29 am]
Clokr_ -- :)
[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 -- I just need to add the <br> to the replace
[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_ -- Using notepad++ with the ". matches newlines" option set
[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]
Lanthanide -- it was on that page
[2016-4-24. : 11:19 am]
Lanthanide -- did you see that ultraedit uses different codes?
[2016-4-24. : 11:19 am]
Lanthanide -- I've got 5.9.3
[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:19 am]
Clokr_ -- I'm using v6.4.5
[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:18 am]
Lanthanide -- not in the version I have
[2016-4-24. : 11:17 am]
Clokr_ -- Have you guys tried that?
[2016-4-24. : 11:17 am]
Clokr_ -- Wait, there is a checkbox that says ". matches newline"
[2016-4-24. : 11:15 am]
Clokr_ -- Lanthanide
Lanthanide 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 -- :lmfao: 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:11 am]
NudeRaider -- yeah
[2016-4-24. : 11:11 am]
Lanthanide -- kate on linux is pretty bullet proof for this, though
[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:08 am]
Lanthanide -- I don't know why the regex in notepad++ is so crap
[2016-4-24. : 11:08 am]
NudeRaider -- hope it can handle multiple files like notepad++
[2016-4-24. : 11:08 am]
Lanthanide -- $80 if you want to buy it legally
[2016-4-24. : 11:08 am]
NudeRaider -- yeah
[2016-4-24. : 11:07 am]
Lanthanide -- it is available
[2016-4-24. : 11:07 am]
NudeRaider -- but thanks anyway
[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:07 am]
NudeRaider -- damn. no linux at home :/
[2016-4-24. : 11:07 am]
Lanthanide -- not for windows
[2016-4-24. : 11:07 am]
Lanthanide -- yeah, another editor
[2016-4-24. : 11:07 am]
NudeRaider -- any recommendations?
[2016-4-24. : 11:07 am]
NudeRaider -- so... another editor?
[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]
NudeRaider -- :) ok
[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:04 am]
NudeRaider -- or does that fail because then the \r\n is missing?
[2016-4-24. : 11:04 am]
Clokr_ -- I did a fast test and it does match expressions across lines
[2016-4-24. : 11:04 am]
NudeRaider -- so it really only has to match that one line
[2016-4-24. : 11:03 am]
NudeRaider -- so the line that opens the tag has the closing tag at the end
[2016-4-24. : 11:03 am]
Lanthanide -- yes, but I still don't know what you mean
[2016-4-24. : 11:03 am]
NudeRaider -- (I manually edited the file for testing)
[2016-4-24. : 11:03 am]
Lanthanide -- I don't know what you mean by that
[2016-4-24. : 11:02 am]
Lanthanide -- so try (.*</p>)?
[2016-4-24. : 11:02 am]
NudeRaider -- Lanthanide
Lanthanide shouted: but the pattern requires the final (.*</p>) to be matched
NudeRaider
NudeRaider 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 -- if you can make that final segment optional, it might help?
[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:02 am]
Lanthanide -- but the pattern requires the final (.*</p>) to be matched
[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]
Lanthanide -- you need to make the \r\n match optional
[2016-4-24. : 11:00 am]
Lanthanide -- right
[2016-4-24. : 11:00 am]
Lanthanide -- hmm, no, it probably will matter
[2016-4-24. : 11:00 am]
NudeRaider -- Lanthanide
Lanthanide 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 -- and you may need character escapes
[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>
[2016-4-24. : 10:53 am]
Lanthanide -- I think sections are usually marked with ( and )

Pages: < 1 « 1761 1762 1763 1764 1765 … 3578 >


Members Online: Symmetry, Wing Zero, DarkenedFantasies