List Info

Thread: regex not matching exact...




regex not matching exact...
user name
2006-04-06 20:07:17
try

\.\/pro_ones

it'll match

./pro_ones

from input:

akdfjaksdfgjakldsfj;lak'l./pro_ones df;ka'lds;fka'lds;fka

..if that's what u meant to accomplish


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

regex not matching exact...
user name
2006-04-06 20:55:30
yes, but the problem is its matching other things where
./pro_ones
is present. Whereas i just want the exact match ./pro_ones.

Thanks


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

regex not matching exact...
user name
2006-04-06 21:18:33
no, regex

./pro_ones

will give u EXACT match

./pro_ones

from the input

akdfjaksdfgjakldsfj;lak'l./pro_ones df;ka'lds;fka'lds;fka

and nothing else will be matched there. I suspect u meant to
say "match
a stand-alone string './pro_ones' between the start and
the end of the
line". If yes, then use 

^\.\/pro_ones$


--~--~---------~--~----~------------~-------~--~----~
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-3]

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