|
|
Browse by Tags
All Tags » javascript
Showing page 1 of 2 (11 total posts)
-
Hi
I want a regexp to check that every open parenthesis has a closed parenthesis.
thank you in advance
-
This is about a strange behavior IE shows for a regex matching Im trying to do.
Here is a password matching expression Im trying to use for matching the below conditions.
Must contain minimum 8 to 20 characters, mandatorily including one letter and number
May include only one of the following special characters: %,&, _, ?, ...
-
Hello,
I have multiple dynamically generated tables with lots of different types of content in each cell. Some cells contain a mixed number represented by #-#/# (e.g. 4-5/6) What I'm trying to do is replace the fraction part of the mixed numbers (along with the hyphen) that might be located in a cell with <span ...
-
I'm a regex noob - but excited that I found this site.
Trying to figure out if this is even possible to do use regex and javascript.
I would like to parse a block of text that is stored in a javascript variable. This text is a mix of contact information and other miscellaneous information - some of which is of no value.
Ideally, ...
-
Hi,
With JavaScript's Date object you can easily do it:
<script type="text/javascript">
var oDate = new Date;
var newTime = oDate.getTime() + 60*60*1000
oDate.setTime(newTime);
alert(oDate);
</script>
To learn more about JavaScript Date object:
http://www.w3schools.com/jsref/jsref_obj_date.asp
-
Hi all,
first post, so I hope I'm posting this correctly. I need to increment the hour in JavaScript by 1 (i.e. I need to get the current hour, add an hour, and then return the answer). An example of the string is as follows (the hour is bolded):
2009-05-18T16:15:00Z
I'm re-learning RegEx after not visiting it for years, so I'd ...
-
I'm not sure exactly what this expression is doing (I can't parse regex), but I'd guess it's basically matching an href link:
/<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i
I'd like to modify it so that it excludes any href link that starts with ...
-
I'm trying to create two javascript bookmarklets:1. Take the current URL of the page and open a new window with a URL
based on the current page. Some examples (I use "->" to mean "this
URL turns into that URL"):
http://example.edu/som/faculty_staff.cfm#HeaderTitle -> ...
-
I have a text input field that I want only to accept numbers or the strings "min" and "max"
I am using the javascript replace function and have the code (/[^0-9]/gi,"") that will get rid of all characters that aren't numbers, what do I need to add so that it will still keep the strings min and max? I ...
-
Yes I know, there are many other JavaScript regex testers available. Why did I create yet another? RegexPal brings several new things to the table for such web-based apps, and in my (biased) opinion it's easier to use and more helpful towards learning regular expressions than the others currently available. Additionally, most other such ...
1
|
|
|