Users Pricing

forum

Home Forums How to match text between double slashes but not url? – MindStick

How to match text between double slashes but not url?

Anonymous User 2457 14 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md