Jump to content

Recommended Posts

Posted

Hello I’m trying to replace '@@ \(\d{1,4}\) : with '@@ (' & @ScriptLineNumber & ') :'

It doesn’t like the \d{1,4)

image.png.0de51bddc7fedfb1884c92170fc21460.png

Using

image.png.a6ea53f362d3c462f80167a852a9bb60.png

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

Posted (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 by TheXman
Posted (edited)

Thank you.

I thought it worked once must have been another app

Once again thank you for your response

Edited by jitb
add info
Posted
Posted

[solved]

Replace

'@@ (\d?\d\d?
with
'@@ (' & @ScriptLineNumber & '

This will capture all numbers

@@ (12345...etc

Thanks for the help

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...