Search the web
Sign In
New User? Sign Up
editplus · Join the EditPlus group! The Best Editor
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Reg Expression Question   Message List  
Reply | Forward Message #6137 of 6448 |
Re: [edit+] Reg Expression Question

This worked for me:
[A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z]

If you need the exact same 3 letter sequence on each side, I believe
editplus' regex parser does not understand the back references like:

([A-Z][A-Z][A-Z])[a-z]\1

A cleaner expression would be:

([A-Z]{3})[a-z]\1

But editplus does not support the { } yet.

Hope this helps
______________________________________
Sergio Pereira



On Tue, Jan 6, 2009 at 1:19 PM, T Cosmas <t_cosmas@...> wrote:
> I need to search through some text to find a string which follows the
> pattern 3 capital letters + 1 lowercase letter + 3 capital letters.
> From the way the problem was stated, I am not sure if the repeating
> characters are all the same so that is why I tried the "+" versions.
> The statement is: "One small letter, surrounded by EXACTLY three big
> bodyguards on each of its sides."
>
> I've tried
>
> [A-Z^a-z][A-Z^a-z][A-Z^a-z][a-z][A-Z^a-z][A-Z^a-z][A-Z^a-z]
>
> [A-Z^a-z]+[a-z][A-Z^a-z]+
>
> [^a-z]+[a-z][^a-z]+
>
> But none of them seem to do the job.
>
> Thanks.
>
>
> ------------------------------------
>
> http://www.editplus.comYahoo! Groups Links
>
>
>
>



Tue Jan 6, 2009 7:36 pm

tjokerbr
Offline Offline
Send Email Send Email

Forward
Message #6137 of 6448 |
Expand Messages Author Sort by Date

I need to search through some text to find a string which follows the pattern 3 capital letters + 1 lowercase letter + 3 capital letters. From the way the...
T Cosmas
t_cosmas
Offline Send Email
Jan 6, 2009
7:19 pm

Your regexps are wrong: you cannot mix the range operator ([ ]) with the negative range operator ([^ ]). Try this: ([A-Z][A-Z][A-Z])([a-z])([A-Z][A-Z][A-Z]) ...
dz@...
dzfoo
Offline Send Email
Jan 6, 2009
7:32 pm

This worked for me: [A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z] If you need the exact same 3 letter sequence on each side, I believe editplus' regex parser does not...
Sergio Pereira
tjokerbr
Offline Send Email
Jan 6, 2009
8:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help