Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
regexen?
regexen
regexes
regexpses
regular expressions
reg(exe[sn] | ular expressions)
vaxen
strcmp
View Results
 
  • Locked thread
suffix
Jul 27, 2013

Wheeee!
is this a real word?

my heart tells me no it drat well isn't

Adbot
ADBOT LOVES YOU

Widdiful
Oct 10, 2012

what exactly constitutes something as a word op
who are dictionaries to tell me what i am and am not allowed to say

emoji
Jun 4, 2004
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now their problem is resolved with an easy and effective solution, assuming it was appropriate for the task at hand.

Valeyard
Mar 30, 2012


Grimey Drawer
code:
var b = RegExp("^" + a("#loggedinusername").text().replace(/([.*+?^${}()|\[\]\/\\])/g,
            "\\$1") + "\\s+posted:$");
        a(".bbc-block h4").filter(function() {
            return b.test(a(this).text())
        }).map(function() {
            return a(this).closest(".bbc-block")[0]
        }).addClass("userquoted")
heres a really cool and good use of a regex to capture the author of a post

pram
Jun 10, 2001
no

Adbot
ADBOT LOVES YOU

pram
Jun 10, 2001

Valeyard posted:

code:
var b = RegExp("^" + a("#loggedinusername").text().replace(/([.*+?^${}()|\[\]\/\\])/g,
            "\\$1") + "\\s+posted:$");
        a(".bbc-block h4").filter(function() {
            return b.test(a(this).text())
        }).map(function() {
            return a(this).closest(".bbc-block")[0]
        }).addClass("userquoted")
heres a really cool and good use of a regex to capture the author of a post



lol

  • Locked thread