View Single Post
Old 05-23-2025, 08:33 AM   #4
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,369
Karma: 20212733
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
Workin it...

Question though:
Is the function result referenceable in the replace field?

If I enter the find field with a normal search and use the regex function (as below) the function works, replacing the grouped section with the function result.

Click image for larger version

Name:	Screenshot 2025-05-23 075926.png
Views:	80
Size:	16.1 KB
ID:	215827

Code:
<h2>SUPER DUPER</h2>

returns

<h2>Super Duper</h2>

However, if I try and add any string before or after it in the replace field it simply treats the function as a string.

Click image for larger version

Name:	Screenshot 2025-05-23 075945.png
Views:	70
Size:	16.9 KB
ID:	215828
Code:
<h2>SUPER DUPER</h2>

returns

<h3>\F<titlecase_ignore_tags></h3>
Is there a way to treat the returned value like a normal \1 in the replace field so we can adjust the string around the function result?

Something like:
Code:
Replace: <h3>\1:F<titlecase_ignore_tags></h3>

to achieve

<h3>Super Duper</h3>
Turtle91 is offline   Reply With Quote