|
|
Browse by Tags
All Tags » Test Tag
-
I am trying to find the word Viagra in a text
my regular expression is in the title, I couldn't type it here because of the smilies
it finds
viagra
v i a g r a
v_i_a_g_r_a
but not
v__i_a_g_r_a (two underscore or more)
v iagra (two spaces or more)
please help me fix this? I thought + means one or more!!
-
i have a string like this
String s = ftp://root:something@somehost/home/test/testUpload.xml
I want to match only the '/' after somehost. I don't want to match any other '/' after that.
How can it be done what regular expression can be used? I am trying to use /+ but it is matching with all '/s'.
Thanks ...
|
|
|