Solved :: Find First Alpha

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Solved :: Find First Alpha

Post by Zoram »

I can't seem to figure out how to find the first :alpha: character in a string. I want to ignore all other characters and return the first one. I was trying to something like: /[:alpha:]/ but it doesn't want to work for me.

Thanks!
Last edited by Zoram on Wed Jan 03, 2007 10:50 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

[[:alpha:]]
or

Code: Select all

[a-zA-Z]
Post Reply