List Info

Thread: Recognise some character if arent between word




Recognise some character if arent between word
user name
2006-04-28 11:07:41
Hi to All.
I want to replace some character (in this case & / . , :
-) if they
arent between two word.
I recognise the string "aaa&aaa" and the
string "aaaaa&" but not the
string "&aaaaa".
How I must modify this regexp
(?<!\w)?[&/.,:-](?!\w)

thanks 

--
Andrea


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

Recognise some character if arent between word
user name
2006-04-28 18:07:51
RE: **I recognise the string "aaa&aaa" and
the string "aaaaa&" but not
the
string "&aaaaa".  **

But the ampersand in string aaaaa&" is NOT between
two alphanymeric
chars, right? And u still 'recognize' it like u do in case
of
'aaa&aaa'. How is that? To me It is a wrong logic.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )