forum

Home / DeveloperSection / Forums / How to match text between double slashes but not url?

How to match text between double slashes but not url?

Anonymous User204614-Oct-2013

I need to replace double slashes in a wiki markup with something else (double slashes stands for italic text).

How can I match italic text, without URLs?

This regexp is for a text where are no URLs: //(.*?)//

Problem appears when there is a text like:

//italic text// and this is only http://some.url/somewhere and this is //another italic text// yeah

I'm using Java.


Updated on 14-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By