Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Regular Expressions (https://forums.graalonline.com/forums/showthread.php?t=80049)

projectigi 06-11-2008 09:49 PM

Regular Expressions
 
Hi,

is there a way to use Regular Expressions with GS2?
Or has someone built a parser in GS2 for them?

DustyPorViva 06-11-2008 09:49 PM

No :( I've asked for them before but no go :/

Chompy 06-11-2008 10:18 PM

I was thinking of making one, until I stumbled on patterns like

HTML Code:

\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
:(

But what syntax are you thinking of though? :o

DustyPorViva 06-11-2008 10:21 PM

Heh, that's REGEX :P

Programmer 06-11-2008 10:39 PM

Quote:

Originally Posted by DustyPorViva (Post 1396443)
Heh, that's REGEX :P

Regex = REGular EXpressions :/

DustyPorViva 06-11-2008 10:58 PM

Exactly what I meant. It was more in the tone of, "Heh, that's REGEX, what do you expect?"

Chompy 06-11-2008 11:39 PM

:p

Googi 06-12-2008 01:20 AM

What sort of validation are you trying to do that you'd rather use REGEX over a function you just script yourself?

DrakilorP2P 06-12-2008 12:42 PM

Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.
-Jamie Zawinski, in comp.lang.emacs

projectigi 06-12-2008 05:14 PM

easy, fast and short matching/validation of user input.


All times are GMT +2. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.