|
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. : 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:49 pm] Clokr_ -- Got VStudio to crash by right-clicking a file while the form designer was opening ;o[2016-4-24. : 4:53 pm] Corbo -- FaRTy1billionFaRTy1billion shouted: o wel, I was bored of the game anyway or a powerless mafia LMAO[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] -- moose you told me to vote corbo now everyone is voting me :9[2016-4-24. : 3:08 pm] Moose -- Dem0nDem0n shouted: I meant to say zero or one of anyways Of course you did. ![]() [2016-4-24. : 2:09 pm] Moose -- Dem0nDem0n 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 -- NudeRaiderNudeRaider shouted: makes the char before it optional Not in this context. Dem0nDem0n shouted: ? means zero or more of Not in any context.[2016-4-24. : 2:04 pm] Clokr_ -- RoyRoy 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> NudeRaiderNudeRaider shouted: I just need to add the <br> to the replace [2016-4-24. : 1:50 pm] NudeRaider -- RoyRoy 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:43 pm] NudeRaider -- you know what sounds more boring? Doing that same match in 1000 files ![]() [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: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. : 12:46 pm] Clokr_ -- I'm migrating some classes from managed C++ to C++/CLI and find&replace is helping a lot ![]() [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:39 pm] NudeRaider -- awesome. Being the regex pro I am ( )I also included the deletion of multiple spaces that came from indenting the next line after the removed line feed[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: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: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: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 |
lil-Inferno, NiallKirkpatrick090, FinlayAbernethy737