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 « 1755 1756 1757 1758 17593572 >

[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 )
[2016-4-24. : 10:53 am]
Lanthanide -- you have to mark the input as having a section, and that becomes a numbered section in the replace text
[2016-4-24. : 10:53 am]
Lanthanide -- you need to tell it what your preserved section is
[2016-4-24. : 10:52 am]
NudeRaider -- sry if I'm doing some silly beginners mistake but if I search for .*(<p id="toptext">).*\r\n and replace it with <br> the whole line gets replaced (using notepad++)
[2016-4-24. : 10:51 am]
Lanthanide -- tomight isn't a word, silly!
[2016-4-24. : 10:50 am]
Lanthanide -- you sure did, you typo'd "tonight"!
[2016-4-24. : 10:50 am]
Lanthanide -- or in that case, find-and-rearrange
[2016-4-24. : 10:50 am]
Lanthanide -- but the final example shows how to do find-and-replace
[2016-4-24. : 10:50 am]
Lanthanide -- no idea what the tool is, and it doesn't use unix standard formatting for some reason
[2016-4-24. : 10:49 am]
Corbo -- I really messed up tomight
[2016-4-24. : 10:48 am]
Lanthanide -- definitely not doing it interactively, then
[2016-4-24. : 10:48 am]
Corbo -- Ugh
[2016-4-24. : 10:48 am]
Lanthanide -- sorry that's wrong, should have been \1<br>
[2016-4-24. : 10:48 am]
NudeRaider -- ~50 lines for ~1000 files
[2016-4-24. : 10:48 am]
Lanthanide -- if you're doing it interactively then you can select when the text is replaced or not, so you'd avoid doing stupid replacements
[2016-4-24. : 10:48 am]
NudeRaider -- \1 = <br> ?
[2016-4-24. : 10:47 am]
Lanthanide -- if you're doing a massive file, then that would just end up replacing all of the line breaks, which you probably don't want
[2016-4-24. : 10:47 am]
NudeRaider -- Lanthanide
Lanthanide shouted: and actually, you don't really need to search for the closing tag
but then it would replace all line feeds after it found the tag, right? Or just 1? I need any number between 0 and ... say 7 replaced.
[2016-4-24. : 10:47 am]
Lanthanide -- ah, that would depend if you're doing the find and replace interactively or not
[2016-4-24. : 10:47 am]
Lanthanide -- you could just do .*(open tag).*\r\n and replace with \1
[2016-4-24. : 10:46 am]
Lanthanide -- and actually, you don't really need to search for the closing tag
[2016-4-24. : 10:46 am]
Lanthanide -- those may not be show-stopping limitations for you
[2016-4-24. : 10:46 am]
Lanthanide -- I think notepad++ had some silly limitations like it could only search for the first linefeed and then it'd stop, and it couldn't be used to put line feeds or tabs in the replacement text

Pages: < 1 « 1755 1756 1757 1758 17593572 >


Members Online: Sie_Sayoka, Zakerozi