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=134264561)

xAndrewx 09-15-2011 03:24 PM

Regular Expressions
 
Anyone know a cool website to learn regular expressions?

I can't find a good one, and to me looking for account with
pc:6000000+

resulted in

pc:6([0-9][0-9][0-9][0-9][0-9][0-9])

which I think could be made better- any help welcome

Crow 09-15-2011 03:25 PM

Does Graal support regexp now? :oo:

xAndrewx 09-15-2011 03:31 PM

I don't think so- but It would be cool. I didn't know where else to post it :[

fowlplay4 09-15-2011 03:48 PM

http://www.lmgtfy.com/?q=regular+expressions

DustyPorViva 09-15-2011 05:13 PM

^pc:6\d{4,8}

Should work, or alternatively:

^pc:6[0-9]{4,8}

But it's been a while since I've done regular expression.

Tolnaftate2004 09-15-2011 06:32 PM

PHP Code:

^pc:([6-9][0-9]{6}|[1-9][0-9]{7,})$ 

if I understand you correctly and you're trying to grab pcid >6M.

xAndrewx 09-15-2011 08:59 PM

Quote:

Originally Posted by fowlplay4 (Post 1668214)

I can't find a good one- read first post


Thanks - I'm going to learn these more, logging is so much easier using them ^^


All times are GMT +2. The time now is 03:39 PM.

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