# Lil help on that RegExp proggy

**URL:** <https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988>\
**Category:** Uncategorized\
**Created:** [August 28, 2002, 1:22am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988 "2002-08-28T01:22:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudeman](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@dudeman](https://forum.kirupa.com/u/dudeman)\
**Post date:** [August 28, 2002, 1:22am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/1 "2002-08-28T01:22:12Z")

</div>

I want it to match the expression “lol” in a sentance… I entered “lol 234234” for the main string for a test (remove the "`s, their not part of the expression) and I put the expression as “lol”.

I didn’t touch parameter or flags, because I’m not really sure I know what they are heh :).

I guess it works because I got :  
String.match(expression): true  
[0] = lol

The only problem is how do I put it in flash… I have no clue, and when I did it told me there are syntax errors…

Also, how would I add expressions with it like : a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p, etc… so if he says a, or b, or c etc it would match it.

Heh this is confusing.

Please help if you can :-\

p.s. someone posted the link in my other thread

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2002, 1:24am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/2 "2002-08-28T01:24:19Z")

</div>

The link is : [http://www.jurjans.lv/flash/RegExp.html](http://www.jurjans.lv/flash/RegExp.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2002, 6:04am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/3 "2002-08-28T06:04:02Z")

</div>

```auto
s = "lol 234234"
re = new RegExp("lol|a|b");

if(re.test(s)){
   trace("found lol or a or b");
}else{
   trace("no match found");
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2002, 10:15am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/4 "2002-08-28T10:15:40Z")

</div>

Wow, that’s cool!

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 2:51am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/5 "2002-08-29T02:51:24Z")

</div>

I don’t get it really :\

All I want it really to do is to play a sound when a, or b, or c, or d, to z is typed in a textbox, it would sound a wav file…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 7:32am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/6 "2002-08-29T07:32:12Z")

</div>

```auto
_root.onKeyDown = function(){
	var k = Key.getCode();
	if(k > 64 && k < 91){
		// jouer au musique
	}
}

Key.addListener(_root);

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 7:40am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/7 "2002-08-29T07:40:59Z")

</div>

Hue… It’s jouer la musique 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 7:54am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/8 "2002-08-29T07:54:19Z")

</div>

doh!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 10:30am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/9 "2002-08-29T10:30:10Z")

</div>

Arg! French sucks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 12:06pm UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/10 "2002-08-29T12:06:05Z")

</div>

WHAT???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2002, 12:05am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/11 "2002-08-30T00:05:53Z")

</div>

I still don’t get it

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2002, 7:55am UTC](https://forum.kirupa.com/t/lil-help-on-that-regexp-proggy/4988/12 "2002-08-30T07:55:12Z")

</div>

hehe i like the | thingymagig 🙂
