Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: wiki regex reprocessing replacement

by LanX (Cardinal)
on Feb 15, 2020 at 17:12 UTC ( #11112993=note: print w/replies, xml ) Need Help??


in reply to Re^2: wiki regex reprocessing replacement
in thread wiki regex reprocessing replacement

Many thanks, :)

... but ...

The testsuite should have also included markup which must not be replaced

My fault sorry, I thought it's obvious by the $pre and $post regex.

The markup must come in pairs and be embraced by special word boundaries.

(whitespace or other markup or tag-brackets or ... depending on pre/post)

Hence a _ inside a word is forbidden, which makes sense for joined_identifiers .

I've updated the tests in Re: wiki regex reprocessing replacement (UPDATED^2) with markup to ignore

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^4: wiki regex reprocessing replacement
by hippo (Chancellor) on Feb 15, 2020 at 18:16 UTC
    My fault sorry, I thought it's obvious by the $pre and $post regex.

    I noticed that they were of no use to the sample dataset so just applied Occam's Razor to them. Given the new(ly stated) criteria and the extra complications those entail I'm happy to wait for tybalt89's solution*.

    *which has appeared even as I was typing this. Top work!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11112993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2020-10-25 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (248 votes). Check out past polls.

    Notices?