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 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...
Is there a simple replace function that will change a greasemonkey wildcard into a regular expression pattern?  I want to convert 'http://www.google.com/*/index.html' into /^http://www.google.com\/\w\/index.html$/  I want to be able to test t...
I want to implement a wildcard search. Write now what i am doing is :   var patt = new RegExp(input);  if(patt.test(searchString))     $scope.filteredModel.push(searchString);   But this does not give wildcard search result. i.e If I enter v*, I shou...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.