News for hackers. Stuff that matters.
Re:Capital One Made Me Different Loan Offers Depending On Wh... by cryptoz on Tuesday November 02, 2010 @01:23PM (#1861368)
s/_/ *

[replace _ with * ]

Re:Capital One Made Me Different Loan Offers Depending On Wh... by boredguy8 on Tuesday November 02, 2010 @01:33PM (#1861394)
What is the world coming to, that you have to explain vi commands on HN?
Re:Capital One Made Me Different Loan Offers Depending On Wh... by ismarc on Tuesday November 02, 2010 @01:50PM (#1861485)
That's technically just a regular expression (perl syntax). The vi equivalent would be

    :%s/_/*/g
Which is, replace all occurrences on all lines of '_' with ' *'

EDIT: Talk about formatting fail...

Re:Capital One Made Me Different Loan Offers Depending On Wh... by jpablo on Tuesday November 02, 2010 @05:26PM (#1862431)
Isn't that actually ed/sed syntax?
Re:Capital One Made Me Different Loan Offers Depending On Wh... by BrandonM on Tuesday November 02, 2010 @09:49PM (#1863263)
What is the world coming to when a correction has to get 3 levels deep before it's actually correct on HN?

(And you have less points than either of the ones above you? Seriously?)

Re:Capital One Made Me Different Loan Offers Depending On Wh... by ismarc on Tuesday November 02, 2010 @10:33PM (#1863361)
Indeed, quick memory recall failure on my part. It's ed syntax which bled into everything else via POSIX basic. However, given the limited number of symbols present, identification can be considered ambiguous :).
Re:Capital One Made Me Different Loan Offers Depending On Wh... by cryptoz on Tuesday November 02, 2010 @01:54PM (#1861500)
I actually couldn't get the asterisk to appear without adding text below it, and I didn't have anything else to add. So I just added an explanation.

Don't worry! I didn't feel like I needed to explain. But the formatting on HN is odd, and the rule on how to use asterisks is obscure and bizarre.

Re:Capital One Made Me Different Loan Offers Depending On Wh... by sprout on Tuesday November 02, 2010 @08:09PM (#1862986)

  s|s/_/*|  s/_/*|
And since I haven't debugged that regex even if it was legible, add two spaces to the beginning of a line to reproduce text verbatim. (Even if it's on one line.)
Re:Capital One Made Me Different Loan Offers Depending On Wh... by rbxbx on Tuesday November 02, 2010 @01:57PM (#1861514)
I wasn't aware HN actually had formatting, I was just trying to use plaintext for emphasis... Or does it?
Re:Capital One Made Me Different Loan Offers Depending On Wh... by brudgers on Tuesday November 02, 2010 @03:33PM (#1861943)
Text between asterisks will be in italics.