what u r doing here is matching on a HYPHEN alone, while
your stated
task is
***i would to match a string that have before and after the
minus character only letters.***
for that you need to use
[a-z]+-[a-z]+
it'll match on say
str-str
On Mar 30, 11:36 am, "andrea azzini"
<azzo... gmail.com> wrote:
> hi to all
> i use php. i would to match a string that have before
and after the
> minus character only letters.
> I tried this
> (?<=[a-z]+)-(?=[a-z]+)
>
> the variable length lookbehind doesn't exist but in php
in particular
> conditions it's possible (i don't understand very well
when it can).
>
> How can i do this with regexp?
>
> thanx
>
> --
> Andrea
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|