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 « 1760 1761 1762 1763 1764 … 3578 >

[2016-4-24. : 8:50 pm]
KrayZee -- no u
[2016-4-24. : 8:50 pm]
Clokr_ -- So far I have filed a bug for the C++ compiler and another one for the Object Browser and I have been using it for 2 weeks...
[2016-4-24. : 8:50 pm]
jjf28 -- nice
[2016-4-24. : 8:49 pm]
Clokr_ -- Got VStudio to crash by right-clicking a file while the form designer was opening ;o
[2016-4-24. : 8:37 pm]
Corbo -- pretty
[2016-4-24. : 8:37 pm]
jjf28 -- it's dank, I suppose :P
[2016-4-24. : 8:36 pm]
jjf28 -- Corbo killing townies rather than confirmed mafias :lol:
[2016-4-24. : 4:53 pm]
Corbo -- FaRTy1billion
FaRTy1billion shouted: o wel, I was bored of the game anyway
or a powerless mafia LMAO
[2016-4-24. : 3:13 pm]
Moose -- Spoken like a true townsperson.
[2016-4-24. : 3:12 pm]
O)FaRTy1billion[MM] -- o wel, I was bored of the game anyway
[2016-4-24. : 3:11 pm]
Moose -- I just want him to die so there can be a N way tie the next day where everyone lynches each other.
[2016-4-24. : 3:09 pm]
O)FaRTy1billion[MM] -- :(
[2016-4-24. : 3:09 pm]
O)FaRTy1billion[MM] -- moose you told me to vote corbo now everyone is voting me :9
[2016-4-24. : 3:08 pm]
Moose -- Dem0n
Dem0n shouted: I meant to say zero or one of anyways
Of course you did. :rolleyes:
[2016-4-24. : 2:39 pm]
Roy -- It is correct in the right context. "?" has multiple uses.
[2016-4-24. : 2:34 pm]
Dem0n -- but looks like that's still not right LMAO
[2016-4-24. : 2:34 pm]
Dem0n -- I meant to say zero or one of anyways
[2016-4-24. : 2:34 pm]
Dem0n -- Roy
Roy shouted: Dem0n That's the asterisk (*).
o
[2016-4-24. : 2:13 pm]
Clokr_ -- Oh I see, so it will only match the \r\n. Cool :)
[2016-4-24. : 2:11 pm]
Roy -- Dem0n
Dem0n shouted: ? means zero or more of
That's the asterisk (*).
[2016-4-24. : 2:09 pm]
Moose -- Dem0n
Dem0n shouted: Moose, early morning memes? LMAO
Give me an hour or so
[2016-4-24. : 2:09 pm]
Roy -- (?<=) means "This comes before, but don't match it." (?=) means "This comes after, but don't match it."
[2016-4-24. : 2:09 pm]
Moose -- NudeRaider
NudeRaider shouted: makes the char before it optional
Not in this context. Dem0n
Dem0n shouted: ? means zero or more of
Not in any context.
[2016-4-24. : 2:08 pm]
Roy -- In the context I used them, they're lookbehinds and lookaheads.
[2016-4-24. : 2:08 pm]
Roy -- No it doesn't.
[2016-4-24. : 2:06 pm]
Dem0n -- ? means zero or more of
[2016-4-24. : 2:06 pm]
NudeRaider -- makes the char before it optional
[2016-4-24. : 2:04 pm]
Clokr_ -- Roy
Roy shouted: I'd have done (?<=<[ap][^>]*>.*)\r\n(?=[^<]*</[ap]>)
How does the ? thing work?
[2016-4-24. : 1:52 pm]
NudeRaider -- that was the final version Clokr_
Clokr_ shouted: Ok this works: replace <p id="toptext">(.*)\r\n(.*)</p> by <p id="toptext">$1$2</p>
NudeRaider
NudeRaider shouted: I just need to add the <br> to the replace
[2016-4-24. : 1:50 pm]
NudeRaider -- Roy
Roy shouted: Are you only trying to match one occurrence of a line break?
ideally it would replace all occurrences, but I didn't mind running it 5 or 6 times until no more matches were found.
[2016-4-24. : 1:48 pm]
Roy -- Are you only trying to match one occurrence of a line break?
[2016-4-24. : 1:47 pm]
Roy -- I'd have done (?<=<[ap][^>]*>.*)\r\n(?=[^<]*</[ap]>)
[2016-4-24. : 1:47 pm]
Dem0n -- ya
[2016-4-24. : 1:47 pm]
NudeRaider -- http://i.imgur.com/xJVT0jS.jpg memes?
[2016-4-24. : 1:46 pm]
Dem0n -- Moose, early morning memes? LMAO
[2016-4-24. : 1:44 pm]
Moose -- :wob:
[2016-4-24. : 1:43 pm]
NudeRaider -- tbh lanth and clokr_ did most of the work
[2016-4-24. : 1:43 pm]
NudeRaider -- you know what sounds more boring? Doing that same match in 1000 files :P
[2016-4-24. : 1:43 pm]
Roy -- Sounds boring. Glad you figured it out.
[2016-4-24. : 1:42 pm]
NudeRaider -- I'm done now, but I was trying to match \r\n inside 2 different html tags
[2016-4-24. : 1:41 pm]
Roy -- What are you trying to match?
[2016-4-24. : 1:41 pm]
NudeRaider -- plus, who wouldn't appreciate a hacky solution ;)
[2016-4-24. : 1:40 pm]
NudeRaider -- regex just seemed easier accessible considering I've never used an xml editor before and wouldn't even know one by name.
[2016-4-24. : 1:38 pm]
NudeRaider -- I haven't tried, although I'm aware that that would be the way to go.
[2016-4-24. : 1:37 pm]
Roy -- Have you tried using an XML parser instead of Regex?
[2016-4-24. : 12:46 pm]
Clokr_ -- I'm migrating some classes from managed C++ to C++/CLI and find&replace is helping a lot :P
[2016-4-24. : 12:45 pm]
Clokr_ -- Most complicated reg exp I had to use so far was ([\s\(])([\w:]+[\s]*)\^([\s\w]+)\[\]
[2016-4-24. : 12:44 pm]
Clokr_ -- Hahaha good job (?)
[2016-4-24. : 12:39 pm]
NudeRaider -- awesome. Being the regex pro I am ( :P )I also included the deletion of multiple spaces that came from indenting the next line after the removed line feed
[2016-4-24. : 12:36 pm]
NudeRaider -- Thanks, seems to work!
[2016-4-24. : 12:33 pm]
Clokr_ -- Yeah sure, I'm leaving all the minor modifications to you :P
[2016-4-24. : 12:33 pm]
NudeRaider -- I should note, that the link always changes. So you can (have to) shorten to <a href="([^<]*)\r\n([^<]*)</a>
[2016-4-24. : 12:31 pm]
Clokr_ -- Try this: <a href="texttolink">([^<]*)\r\n([^<]*)</a>
[2016-4-24. : 12:27 pm]
NudeRaider -- :P
[2016-4-24. : 12:27 pm]
Clokr_ -- I have absolutely no idea. I'm learning reg exps too :P
[2016-4-24. : 12:27 pm]
NudeRaider -- to exclude a > from the match all?
[2016-4-24. : 12:27 pm]
NudeRaider -- about the exlusion... how does that work? like .*[^>]
[2016-4-24. : 12:25 pm]
NudeRaider -- Clokr_
Clokr_ shouted: I mean if there is a <a> tag inside another <a> tag.
no
[2016-4-24. : 12:25 pm]
NudeRaider -- unless you mean like <td>...<a> ... </td> ... </a> that doesn't happen, fortunately
[2016-4-24. : 12:25 pm]
Clokr_ -- I mean if there is a <a> tag inside another <a> tag.
[2016-4-24. : 12:24 pm]
NudeRaider -- yup. incase of the <a> tag, it is embedded into a <td> which is embedded into a <tr> etc.
[2016-4-24. : 12:23 pm]
Clokr_ -- Are there nested a tags?
[2016-4-24. : 12:23 pm]
Clokr_ -- Yeah reg exps will do really badly with nested structures.
[2016-4-24. : 12:21 pm]
NudeRaider -- that properly identifies tags
[2016-4-24. : 12:20 pm]
NudeRaider -- at that point I probably should use an xml editor :P
[2016-4-24. : 12:19 pm]
NudeRaider -- hm seems I have run out of logic. Problem is it finds lines that are fine (and close with a </a>), then end with \r\n and then the next correct line has the </a> tag again. Problem is the </a> to end the expression isn't unique anymore so it'll just parse 2 fine lines into one that it thinks needs fixing.
[2016-4-24. : 12:17 pm]
Clokr_ -- You can try to exclude </a> from the .* groups, but I don't know if notepad will handle that right
[2016-4-24. : 12:06 pm]
NudeRaider -- Finding href="(.*)\r\n(.*)</a> marks the text from href to the SECOND </a> tag it finds
[2016-4-24. : 12:06 pm]
NudeRaider -- hm... next problem. Basically the same, but apparently not exactly. I need to replace the linefeeds inside an <a href="texttolink"> </a> tag. It's wrapped inside another tag so the line doesn'st start with <a href... but that doesn't seem to be a problem
[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

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


Members Online: lil-Inferno, NiallKirkpatrick090, FinlayAbernethy737