jitb Posted September 15, 2020 Posted September 15, 2020 Hello I’m trying to replace '@@ \(\d{1,4}\) : with '@@ (' & @ScriptLineNumber & ') :' It doesn’t like the \d{1,4) Using String looking at ConsoleWrite('@@ (229) :(' & @MIN & ':' & @SEC & ') _test02()' & @CR) ;### Function Trace Using SciTE 32-bit Version 4.2.0 Sep 3 2019 19:04:05 Thank you for you feed back
TheXman Posted September 15, 2020 Posted September 15, 2020 (edited) As it states in the Scite help file, under Find and Replace: "SciTE supports basic regular expressions with tagging". The quantifier ({1,3}) syntax is not valid in the Scite Find. Try "'@@ \(\d\d?\d?\) :" instead. Search for "Scite Regular Expressions", in the Scite help file, to see what Scite accepts. Edited September 15, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
jitb Posted September 15, 2020 Author Posted September 15, 2020 (edited) Thank you. I thought it worked once must have been another app Once again thank you for your response Edited September 16, 2020 by jitb add info
TheXman Posted September 15, 2020 Posted September 15, 2020 You're welcome. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
jitb Posted September 23, 2020 Author Posted September 23, 2020 [solved] Replace '@@ (\d?\d\d? with '@@ (' & @ScriptLineNumber & ' This will capture all numbers @@ (12345...etc Thanks for the help
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now