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 « 1762 1763 1764 1765 1766 … 3578 >

[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
[2016-4-24. : 10:43 am]
Lanthanide -- Kate on linux will do it fine though, that's what I use at work for this sort of thing
[2016-4-24. : 10:42 am]
Lanthanide -- I'm not sure if notepad++ can do it properly
[2016-4-24. : 10:42 am]
Lanthanide -- the hardest part of this may actually be finding tools that will let you do a find-and-replace regex on whitespace characters
[2016-4-24. : 10:42 am]
Lanthanide -- ah, ok
[2016-4-24. : 10:38 am]
NudeRaider -- k. I'm new to regex but I shall give it a try. Btw. I'm trying to get rid of the line feeds ( \r\n ) and replace them with <br> so the tag takes just 1 line, as it's supposed to.
[2016-4-24. : 10:32 am]
Lanthanide -- and some of them are wonky when it comes to handling actual new lines in the input
[2016-4-24. : 10:32 am]
Lanthanide -- note that not all editing tools can do find and replace with regex
[2016-4-24. : 10:31 am]
Lanthanide -- I don't know how you could do a variable number of <br>, which would result in a variable number of fragments that you want to keep
[2016-4-24. : 10:31 am]
Lanthanide -- in this case there are only two fragments so you only need \1\2
[2016-4-24. : 10:31 am]
Lanthanide -- trying to go much farther than that is probably not worth it, because the replace operation with regex is more limited than the search operation, since you have to specify each fragment to keep using numbers
[2016-4-24. : 10:30 am]
Lanthanide -- so if a particular tax set has 5 <br> then you would need to run it 5 times to remove them
[2016-4-24. : 10:30 am]
Lanthanide -- such a regex will be able to remove 1 <br> per set of tags
[2016-4-24. : 10:29 am]
Lanthanide -- and since you want to erase the text you'r looking for (<br>), your replace string would just be \1\2
[2016-4-24. : 10:29 am]
Lanthanide -- and then you need to surround the first tag and random text with sequence braces, and the last tag and random text with sequence braces
[2016-4-24. : 10:28 am]
Lanthanide -- so something like ^(first tag).*(match).*(end tag)$
[2016-4-24. : 10:28 am]
Lanthanide -- then it's a matter of finding the first tag, then random characters within which is an embedded match, followed by the closing tag
[2016-4-24. : 10:27 am]
Lanthanide -- build the regex up: first parse for the open tag, then parse for the close tag, then put them together and parse for the tag with any random text inside using .*
[2016-4-24. : 10:25 am]
Lanthanide -- yes
[2016-4-24. : 10:10 am]
NudeRaider -- is it possible with regex to find start and end of the tag and replace stuff inside?
[2016-4-24. : 10:09 am]
NudeRaider -- hm... looking for a program that identifies a tag ( <p id="toptext"></p> ) and lets me do a search and replace only inside this tag. Problem: The contents of the tag are likely to be spread among multiple lines--which is exactly what I wanna remedy: Replace line feeds with <br>
[2016-4-24. : 8:38 am]
NudeRaider -- Roy
Roy shouted: Are you trying to direct link those? Because Snaggy recently changed it so you can't direct link anymore.
I mean hotlinking is a kind of dickish move, so I understand why they're doing it. And since their image viewer is pretty useful I'm totally okay with them doing it and not hotlinking anymore
[2016-4-24. : 8:32 am]
NudeRaider -- FaRTy1billion
FaRTy1billion shouted: why are you still up?
we should ask YOU this
[2016-4-24. : 8:32 am]
NudeRaider -- Corbo going down?
[2016-4-24. : 8:23 am]
Clokr_ -- am I late???
[2016-4-24. : 8:23 am]
Clokr_ -- :kame:
[2016-4-24. : 8:02 am]
O)FaRTy1billion[MM] -- why are you still up?
[2016-4-24. : 8:02 am]
O)FaRTy1billion[MM] -- :kame:
[2016-4-24. : 8:01 am]
Fire_Kame -- :kame:
[2016-4-24. : 7:33 am]
O)FaRTy1billion[MM] -- I haven't done any extensive testing, just that the game runs, shows images, and shows the extended IDs
[2016-4-24. : 7:32 am]
O)FaRTy1billion[MM] -- it was actually easier than I was expecting. :P There was a bug in my code that made it not replace all of the addresses, one address had the wrong opcode size (+3 instead of +1) so it was causing an access violation, but in doing so it showed me a constant value I had missed.
[2016-4-24. : 7:21 am]
Clokr_ -- yay!
[2016-4-24. : 6:24 am]
O)FaRTy1billion[MM] -- I got flingy, sprites and images. Which dat should I do next? :wob: How useful are weapons, techs, or upgrades (the latter two might need some .dat requirement edits in fg?
[2016-4-24. : 6:21 am]
O)FaRTy1billion[MM] -- I know. ;o I was trying anyway. It doesn't really matter
[2016-4-24. : 5:56 am]
Roy -- Are you trying to direct link those? Because Snaggy recently changed it so you can't direct link anymore.
[2016-4-24. : 5:51 am]
O)FaRTy1billion[MM] -- https://i.snag.gy/sgoWiS.jpg images.dat successfully expanded. ^^
[2016-4-24. : 5:42 am]
O)FaRTy1billion[MM] -- https://i.snag.gy/olan0b.jpg this marine has a flingy ID of 209, which has a sprite ID of 517, which has an image ID of 999 though. So that's cool.
[2016-4-24. : 5:36 am]
O)FaRTy1billion[MM] -- https://i.snag.gy/Ay2ekU.jpg I didn't break anything. Nope, sure didn't. Nothing at all.
[2016-4-24. : 4:53 am]
O)FaRTy1billion[MM] -- I've played with you guys, everyone just always does it when I'm not home or otherwise doing something else
[2016-4-24. : 4:53 am]
O)FaRTy1billion[MM] -- That could be true, even if I did play it :P
[2016-4-24. : 4:52 am]
Moose -- Yeah, you don't have SC installed :P
[2016-4-24. : 4:52 am]
O)FaRTy1billion[MM] -- No I didn't, that's a lie
[2016-4-24. : 4:52 am]
Moose -- Let it be known that tonight :farty: played SCBW with us!
[2016-4-24. : 3:57 am]
Fire_Kame -- :lol:
[2016-4-24. : 3:52 am]
Lanthanide -- you've met a "village-worth of gays"
[2016-4-24. : 3:52 am]
Lanthanide -- Kame, the correct collective noun for gays is a village
[2016-4-24. : 3:39 am]
Fire_Kame -- I'll have you know I've met tens of gays
[2016-4-24. : 3:39 am]
Fire_Kame -- always?

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


Members Online: Symmetry, Wing Zero, DarkenedFantasies