This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help with this regexp thingie plz!

Old posts that have not been replied to for several years.
Locked
k
ka0n
Voice
Posts: 13
Joined: Mon Jan 19, 2004 5:33 pm

Help with this regexp thingie plz!

Post by ka0n »

Hi guys,
I would like to know how to match [A-Z] or [0-9] in a string. If the string contains characters like * & % $ # @ ! and etc. regexp would have to return 0.

Thanks very much :]
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: Help with this regexp thingie plz!

Post by user »

Have you ever read "The Manual"?
k
ka0n
Voice
Posts: 13
Joined: Mon Jan 19, 2004 5:33 pm

You da man!

Post by ka0n »

Worked like a charm, I don't know why.. but worked, just can't understand regexp and regsub. But thanks alot!
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

regexp - Match a regular expression against a string.
regsub - Perform substitutions based on regular expression pattern matching.
Once the game is over, the king and the pawn go back in the same box.
Locked