View Single Post
Old 09-12-2018, 08:22 PM   #1
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,301
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Regex for Marking Text?

Does anyone know of a way to restrict a find/replace to marked text....within the search parameter? I know you can manually mark the text with Ctrl + Shift + M, but I'm hoping to do it as part of a saved search group.

eg.

Step one:
find: <table(.*?)>(.*?)</table> and set as marked text

Step two:
find (within marked text): <p>(.*?)></p> and replace: \1

Step three:
Change the 'marked text' selector back to "All HTML Files"

Thanks,
Turtle91 is online now   Reply With Quote