You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regular expressions allow caching the matching results for parenthesized patterns (e.g. ([a-z]+) ) into indexed variables. These results can later be accessed in the same search pattern through backreferences (e.g. \1, \2, \3, etc).
Various tools and code editors (e.g. Ace, VSCode) allow accessing these indexed variables by prefixing the index number with $ in the replacement pattern (e.g. $1, $2, $3, etc).
This doesn't happen with Sora.
The text was updated successfully, but these errors were encountered:
this functionality is not dependent on the sora editor. Instead, it must be implemented by the application itself
I don't know for sure to be honest since I didn't read the source code for Sora editor. But I tested it on the bare demos of other editors like Ace and Monaco and it worked as seen in the screenshots. Another reason for my guess that it has to do with Sora is because of an issue like this in Ace itself that affects editors based on it, like Acode in this issue as mentioned (and fixed) in this comment. This issue doesn't occur in the search/replace function in Sora and Monaco editors themselves, thus preventing it from occuring in any code editor applications derived from them like VSCode (based on Monaco), Xed-Editor (based on Sora) and Visual Code Space (based on Sora and Monaco).
Regular expressions allow caching the matching results for parenthesized patterns (e.g.
![Screenshot_2024-12-28-20-17-51-95](https://private-user-images.githubusercontent.com/176446020/399127974-6b541bbe-e6d0-480e-a959-6c5019ec93e4.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODE0NDcsIm5iZiI6MTczOTQ4MTE0NywicGF0aCI6Ii8xNzY0NDYwMjAvMzk5MTI3OTc0LTZiNTQxYmJlLWU2ZDAtNDgwZS1hOTU5LTZjNTAxOWVjOTNlNC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMTEyMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iOTM1YjhlYzJlNGU5NDhjMmUxZWIxMTFiOGRlNzY2NTA3YzQxYThhMmNmMTZhYTUzMTYyNGMwNDNlYTMxZjA1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.7ghD3u-_TxpQAizlXdNb7-zTBXliw04epHGgqdwP3cI)
([a-z]+)
) into indexed variables. These results can later be accessed in the same search pattern through backreferences (e.g. \1, \2, \3, etc).Various tools and code editors (e.g. Ace, VSCode) allow accessing these indexed variables by prefixing the index number with
![Screenshot_2024-12-28-09-25-40-92](https://private-user-images.githubusercontent.com/176446020/399128084-7197682f-ae4a-495f-ac24-aea76f23d7ab.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODE0NDcsIm5iZiI6MTczOTQ4MTE0NywicGF0aCI6Ii8xNzY0NDYwMjAvMzk5MTI4MDg0LTcxOTc2ODJmLWFlNGEtNDk1Zi1hYzI0LWFlYTc2ZjIzZDdhYi5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMTEyMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTAzNjJkMDhlNWMyM2FlZjY3N2Q5YjJlZjQ3ZTcwMzcwMWM5ZTBhMzNiZTk0MzlkNmNlNzI1ODVjYjY5ZjQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pqigC_pwP6RdmGP_HCDktTt0CFe_AM33S1oJ0tCowRM)
![Screenshot_2024-12-28-09-26-10-52](https://private-user-images.githubusercontent.com/176446020/399128068-de75025d-f7dc-4a82-9db1-151550c1c90a.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODE0NDcsIm5iZiI6MTczOTQ4MTE0NywicGF0aCI6Ii8xNzY0NDYwMjAvMzk5MTI4MDY4LWRlNzUwMjVkLWY3ZGMtNGE4Mi05ZGIxLTE1MTU1MGMxYzkwYS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMTEyMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZDNmY2FmOGJkMTE1Y2Y3ZWQ0NWNiMTc2ZDE4ODNiMzJiN2Y0ZjE4OGUyZjI4MTkwMTUwZjU1MmQwOGFlYjZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.4c0GDZ5dq5F39zUP15JTTfNjlWt_cQk-_HsEVkM4H8M)
$
in the replacement pattern (e.g.$1
,$2
,$3
, etc).This doesn't happen with Sora.
![Screenshot_2024-12-28-20-18-14-74](https://private-user-images.githubusercontent.com/176446020/399127975-33b74763-4ed8-40ab-8c9a-c9c928b8f0bb.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODE0NDcsIm5iZiI6MTczOTQ4MTE0NywicGF0aCI6Ii8xNzY0NDYwMjAvMzk5MTI3OTc1LTMzYjc0NzYzLTRlZDgtNDBhYi04YzlhLWM5YzkyOGI4ZjBiYi5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QyMTEyMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YjNlYTQ1MmI4OTZlOTNjMTZjZjFmMDczM2MxMTg2MzNmZDBkMTVmMzRlYWRhODc2YjYyY2M0MjUxYzNiYjJlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.JEp18U2u4BdbVv0b2nUdMBzuyMLuco9qgSwCm5aryCw)
The text was updated successfully, but these errors were encountered: