Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expression modify
#8
Sorry, I don't know how to express.....
I want to delete the specified word and the brackets after it 
For the following example: abc and the brackets after it 
The result I expect is:

s1: 
xzc ; dfg()

s2:
s.fix()
-------------------------------------------------
out
str s1=
 xzc abc(s "(abc)"); dfg()

str s2=
 s.fix(abc(h SCI.SCI_GETTEXTRANGE 0 &t))

str p="(?<=[\w ]\()[^;\n]*(?=\))"
s1.replacerx(p)
out s1

s2.replacerx(p)
out s2


Messages In This Thread
Regular expression modify - by Davider - 03-12-2023, 01:40 AM
RE: Regular expression modify - by Davider - 03-12-2023, 05:24 AM
RE: Regular expression modify - by redbull2k - 03-12-2023, 05:51 PM
RE: Regular expression modify - by Davider - 03-12-2023, 09:27 PM
RE: Regular expression modify - by redbull2k - 03-12-2023, 11:44 PM
RE: Regular expression modify - by Davider - 03-13-2023, 03:16 AM
RE: Regular expression modify - by Kevin - 03-13-2023, 04:34 AM
RE: Regular expression modify - by Davider - 03-13-2023, 06:13 AM
RE: Regular expression modify - by Davider - 04-16-2023, 06:30 AM
RE: Regular expression modify - by Gintaras - 04-16-2023, 07:57 AM
RE: Regular expression modify - by Davider - 04-16-2023, 12:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)