Skip to main content
Known Participant
April 3, 2024
Question

Superscript by FindChangBy.JSX

  • April 3, 2024
  • 1 reply
  • 683 views

Hi all,

I have a file containing 

^{2}  OR _{2}

I want matter in {.....} Superscript. 

I have added below line in FindChangeBy supporting file

Where and how to add Superscript/Subscript.

 

grep {findWhat:"(\\^\\{)(.+?)(\\})"} {changeTo:"$2"} ...

 

Suryakant

This topic has been closed for replies.

1 reply

Community Expert
April 3, 2024

I would say first check your grep from the find change dialog and when you see it working then use the FindChange file. Now if your requirement is just to find text within {} and replacing if with the text without {} then the following should work

Find 

\{([^{}]+)\}

Change To

$1

If this does not work then please share the text and explain what you wanted and what you are getting

-Manan

-Manan
Known Participant
April 3, 2024

Thanks,

I tried FindChange. It is working fine.

The reason I ask is  IN same file I have make many changes, and keep 1-set ready for future use also.

Suryakant

Community Expert
April 4, 2024

So you mean that the query I gave worked with FindChange dialog and now you want that to work through the FindChangeByList file?

-Manan

-Manan