The following situation:
I have an array with possible matches to find:
var posmatches = [ "one", "two", "three", "four" ];
This is example content i want to search in.
Suspendisse vestibulum [one] dignissim quam. Integer vel augue. Phasellus nulla purus, [four attr="whatever"] interdum ac, venenatis non, varius rutrum, leo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames.
I’m trying to find matches between square brackets, including everything until the closing bracket.
So i want a result as following:
0: [one] 1: [four attr="whatever"]
If i need to only find 1 certain match doing the same thing i already have the following working code:
var regmatch = "\\[four(.*?)\\]"; var re = new RegExp( regmatch, "img" ); var matches = content.match( re );
How could i do the same thing, but then let it put some sort of OR statement in place of ‘four’ in the regex, but matching the rest like in the regex.
I’ve tried the following for use in regex…
var ormatches = posmatches.join("|");
..., and this works using it inside the regex, but i want to include the square brackets like above.
ChapterThemes saidI don’t think it’s a bad idea. If you purchase any product, you have 2 years warranty. After that you need to pay for all repairs yourself. Why would we have to support themes for free forever?
Just stop discussing this. It’s the worst idea ever to do such thing.
That’s the whole point: you DON’T have to!
And IF you DO want to offer it: What’s better than get your clients to pay you directly?
There’s a serious lack of business thinking here.
I think it’s close. With the right improvements it surely will be accepted.
BTW – you should change your icon, wouldn’t want adobe going after you
Don’t Stop ‘Til You Flat Enough
Heeaaalll the wooooorrrrlllddd – make it a Flatter plaaaaceeeee….
haha yeah, i do like the actual design though.. it’s just about the naming.
But your right about not ignoring a hype.
I’ll think of some theme and call it something with “Flat” in it
Maybe i’ll do a michael jackson remix as well “Who’s Flat!”, you know i’m Flaaaaattt i’m flaaaaat you know it!
10 mins. for such a small file is really long. Sounds like something is not functioning well or so..
Sometimes i got way larger files that import in a minute or something.
Maybe the importing images from the server where it gets it from is delaying everything?