Search found 6 matches
- 24 Jul 2020, 04:09
- Forum: Ask for Help (v1)
- Topic: How can I simplify my code with RegExReplace?
- Replies: 6
- Views: 2810
Re: How can I simplify my code with RegExReplace?
In RegEx plain braces are used to capture groups - using the (?: .....) syntax defines a NON-CAPTURING group... For a good expalantion of capturing vs. non-capturing group see https://stackoverflow.com/questions/3512471/what-is-a-non-capturing-group-in-regular-expressions I get it! Thanks! :bravo: ...
- 22 Jul 2020, 20:43
- Forum: Ask for Help (v1)
- Topic: How can I simplify my code with RegExReplace?
- Replies: 6
- Views: 2810
Re: How can I simplify my code with RegExReplace?
teadrinker wrote: ↑22 Jul 2020, 13:42Hm, maybe you'll ask more specific questions to clarify what exactly you can't understand?![]()
Code: Select all
str := RegExReplace(chStr, "圖((?:\S+?、)*)(\S+?)、", "圖s $1$2 and ")
- 22 Jul 2020, 13:08
- Forum: Ask for Help (v1)
- Topic: How can I simplify my code with RegExReplace?
- Replies: 6
- Views: 2810
Re: How can I simplify my code with RegExReplace?
HI,
Could you please explain the code a bit?
Thanks!!!
Could you please explain the code a bit?
Thanks!!!
- 22 Jul 2020, 03:05
- Forum: Ask for Help (v1)
- Topic: How can I simplify my code with RegExReplace?
- Replies: 6
- Views: 2810
How can I simplify my code with RegExReplace?
Hi, I am currently doing some translation (Chinese to English) which often have some fixed phrase pattern. For example, I want to translate "圖1、2、3" in Chinese into "Figures 1, 2 and 3" Currently I use the following code to do the translation (copy Chinese and paste into English) and also deal with ...
- 01 May 2018, 00:26
- Forum: Ask for Help (v1)
- Topic: Numpad 4 + Numpad 5 = Numpad 8 ?
- Replies: 4
- Views: 1477
Re: Numpad 4 + Numpad 5 = Numpad 8 ?
Thanks everyone for the help. It turn out that even turning off the script will have this problem. I shifted the number hotkeys from windows key to alt key.
- 25 Sep 2017, 04:44
- Forum: Ask for Help (v1)
- Topic: Numpad 4 + Numpad 5 = Numpad 8 ?
- Replies: 4
- Views: 1477
Numpad 4 + Numpad 5 = Numpad 8 ?
I wrote a script for entering numbers faster when the input method is in Chinese (which is my mother language). #1::Send {Numpad1} #2::Send {Numpad2} #3::Send {Numpad3} #4::Send {Numpad4} #5::Send {Numpad5} #6::Send {Numpad6} #7::Send {Numpad7} #8::Send {Numpad8} #9::Send {Numpad9} #0::Send {Numpad0...