Regular Expressions are kicking my butt!!! :|

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
Dammit! All I want to do is pick out the phrases that have spaces in them from a .txt file.

I can't get the stupid thing to work.

This is what I'm trying to find:

/[First Name]{space}[Last Name]/

Anyone want to give me a suggestion??

TIA

amish
 

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
Originally posted by: notfred
/([A-z]+ [A-z]+)/

Sonofa.....

Thanks, notfred

After seeing that I figured out what my problem was.... :|

This is what I was working with...

/[a-zA_Z] {1}[a-zA_Z]/


Freaking underscores!!!!! Grrr! :|

amish
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
" {1}" is kinda pointless. Actually, {1} is pretty pointless in general, as you may as well just use the character you're matching.