473,805 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RegExp post on Wikicodia

Hello,

I've just posted a snippet on JavaScript RegExp, it's still a stub
http://www.wikicodia.com/wiki/JavaSc...lar_expression

Please help me to expand it and put all information about the topic so
we can reference it anytime and close it. Also there may be some
English mistakes, I'm sorry, I'm not a native language speaker.

Regards,
Mohammad Abou-Basha
Wikicodia Admin

Sep 22 '07 #1
3 1519
Mohammad Abou-Basha wrote:
I've just posted a snippet on JavaScript RegExp, it's still a stub
http://www.wikicodia.com/wiki/JavaSc...lar_expression

Please help me to expand it and put all information about the topic so
we can reference it anytime and close it. Also there may be some
English mistakes, I'm sorry, I'm not a native language speaker.
http://developer.mozilla.org/en/docs...Objects:RegExp
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Sep 22 '07 #2
In comp.lang.javas cript message <11************ **********@d55g 2000hsg.go
oglegroups.com> , Sat, 22 Sep 2007 17:01:33, Mohammad Abou-Basha
<mi********@gma il.composted:
>I've just posted a snippet on JavaScript RegExp, it's still a stub
http://www.wikicodia.com/wiki/JavaSc...lar_expression

<FAQENTRYThat site should be reviewed for the newsgroup FAQ.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.merlyn.demo n.co.uk/clpb-faq.txt RAH Prins : c.l.p.b mFAQ;
<URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zipTimo Salmi's Turbo Pascal FAQ.
Oct 2 '07 #3
Mohammad Abou-Basha wrote on 22 sep 2007 in comp.lang.javas cript:
Hello,

I've just posted a snippet on JavaScript RegExp, it's still a stub
http://www.wikicodia.com/wiki/JavaSc...lar_expression

Please help me to expand it and put all information about the topic so
we can reference it anytime and close it. Also there may be some
English mistakes, I'm sorry, I'm not a native language speaker.
If you posted this:

<form method='post'>
<input name="emailText Box" type="text">
<input type="button"
onClick="return validateEmail(t his.form.emailT extBox)"
value="Validate " />
</form>

change this to:

<form method='post'
onsubmit="retur n validateEmail(t his.form.emailT extBox)">
<input name="emailText Box" type="text">
<input type="submit" value="Validate ">
</form>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14160
by: Ones Self | last post by:
Hi all: I'm trying to replace using a regexp read from a file: $string = '123 456 789'; # these two are usualy read from a file, # and so have to be in variables. $re = '()'; $rep = '|$1|';
10
7697
by: Andrew DeFaria | last post by:
I was reading my O'Reilly JavaScript The Definitive Guide when I came across RegExp and thought I could tighten up my JavaScript code that checks for a valid email address. Why does the following not appear to work: var email_address = "Joe@Schmoe"; var email_regex = new RegExp ("^(\\w+)(\@)(\\w+)(\.)(\\w+)$"); var result = email_regex.exec (email_address); alert (" result = \"" + result + "\"\n" + " result = \"" + result + "\"\n" + "...
10
2222
by: Jeff Sandler | last post by:
I have a page that accepts input from many textboxes. Many of the textboxes are intended to accept dates and times, thus, I expect only digits to be entered. I originally tested using parseInt and isNaN, but I'm not even sure that the results are as perfect as I need. I am expecting to use RegExp.test(string), but I'm not 100% sure about that, either. Here is a test program with a textbox that has a maxlength of 2 characters. The...
4
7479
by: Jon Maz | last post by:
Hi All, I want to strip the accents off characters in a string so that, for example, the (Spanish) word "práctico" comes out as "practico" - but ignoring case, so that "PRÁCTICO" comes out as "PRACTICO". What's the best way to do this? TIA,
6
4515
by: jiing24 | last post by:
I try to use regexp to replace some html tags in DOM, but the result seems some problems, ================================ <Script language="javascript" type="text/javascript"> var config = document.getElementById("rootconfig"); alert(config.innerHTML);
4
2485
by: drasko | last post by:
Hi all. I need to code simple and fast int regexp_match(char *regexp, char *string) function that will follow the expression regexp, and see if there is a matching in the string. If there is, it will return 1 (TRUE). Are there some examples I can see, do you have ideas how to start with this, and so on... GNU C regexp is to big and complicated for me, it takes a lot of space (i need this for the use in embedded system). I'll...
11
2940
by: HopfZ | last post by:
I coudn't understand some behavior of RegExp.test function. Example html code: ---------------- <html><head></head><body><script type="text/javascript"> var r = /^https?:\/\//g; document.write( ); </script></body></html> ---------------------
2
1918
by: Wikicodia Admin | last post by:
Dears, Wikicodia is a wiki based project for sharing code snippets. We're collecting large number of code snippets for all code-based programming languages, scripts, shells and consoles. We wish you could help us. We're still BETA. Your suggestions, ideas and criticisms are very welcomed. We're waiting for you contributions. You can easily share and search our snippet using our Google Desktop Gadget. We're waiting for your JavaScript...
1
3432
by: chainspell | last post by:
My very first post here :) I know my way around vb and js but I'm lost with regular expressions.. Anyways I have my function below, and my problem is the function changes all words into links... even the ones inside html markups like <a href, <img, etc. What do I need to change on the RegExp to fix that? Thanks so much! function linkWord(){ var y = document.getElementById("main").getElementsByTagName("div"); for (var...
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.