Is there a way to access all the object instances starting with a common string.  Example: I have instances named button64, button223, button856471, button229846, etc. I have no control over how these instances are named. I want to push all these in...
I want to search for titles using shell wildcards like *.js, *.*.* etc. in js. The thing is I loop through a list of titles and I need to filter the files using a js regex test. How do I convert shell wildcards to regex in a good way or are there any...
I am trying to set up a build system for my front end work though I am running into a problem where it loops processing files over and over again. This is a problem with my js processing since I am not sure how to exclude just the files with .min as...
I'm using a js library inside a PhoneGap application for iPhone. I don't know what other external sites my js library contacts, so I need a way of whitelisting all connections, just for testing. How do I do that?  My app just silently fails,...
I'm trying to match URLs with wildcards in them to actual URLs. For example:  http://*google.com/*   Needs to match  http://maps.google.com   And  http://www.google.com/maps   What would be the best way of going about this?  I've tried using...
I have a ton of variables to work with here, with information going back and forth between a form in HTML. The variables need to be global so that they can work across a variety of functions. So here's one sample of the list:  var charDex = 0; va...
If my javascript ajaxes away to my server and returns an ID of 49 in the plain text format of [49] is there a way in which i an do something like this... (i have tested and doesnt work)  switch(data) {     case '[*]':         (..etc.)     bre...
I have an input element which id looks like:  Les_Site_1381400656_43306_input   The ID format will always be Les_Site_ANYTHING_INPUT  My current selector is: $(element).find('[id^=Les_Site_input]')  How do I i make a selector which says i wan...
Given a user-inputted string with unknown regexes, I want to get the index of the first special regex character. (For my use case, the string will be a path.)  Examples:  foo/*/bar -> 4   foo?/*/*/ -> 3  foofoo+?/**/ -> 6...
How can I match a string with a template, where the template uses asteriskses (*) to specify a wildcard?  The wildcard should match any amount of characters, but should also be escapable (\* should not be detected as a wildcard)  For example, I shoul...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.