0
953 次浏览

[There is no Help topic for RegEx Pal, so I’ll start this thread for myself or anyone else to add helpful comments about RegEx Pal.]

To open RegEx Pal, choose Tools menu ➢ AdvancedRegEx Pal…

In the regular PT Find/Replace, regexes can be used only in the Find field. The RegEx Pal tool gives full regex find/replace functionality, plus the ability to count the number of matches a find string generates, or list each possible match along with the count for each unique matching string.

There are also menu items that will insert certain regex strings to save you having to remember them (such as preceded by, not followed by); and there is a menu where you can save your best-constructed regexes for later use.

Tech note: RegEx Pal is a stand-alone executable file, separate from the Paratext executable. However, it is best to run it from the Paratext menus.

:informationicon: See also:

  • Can regular expressions be used in Paratext?
  • Useful Regular Expressions
  • Expressions for RegEx Pal
  • Project History panic (post #3)

Key terms for search:

  • regular expression
较早的帖子 - 以原始语言显示
Paratext (1.4k 分) 发布
已重新显示 | 953 次浏览

3 个回答

0
最佳答案

I tried to open RegEx Pal using the Tools menu, and got the following error:

Notes:

  • My projects folder is not the one specified in the error, but “C:\Paratext8 Projects”. Maybe this is just the way it was programmed, and the error shows the default projects folder location;
  • Last time I opened RegEx Pal, this did not happen. I anon421222’t know how long ago that was;
  • My “cms” folder seems to have plenty of files in it.

Solutions?

较早的帖子 - 以原始语言显示
(1.4k 分) 发布
已重新显示

Done.

Yes, I was in two minds about my comment. But it was not meant in the pejorative sense, but in the sense of an oversight: that when programming you might overlook that this folder could be in a different location.

If you want, we can delete your last two messages (part of the second one) and my last two (i.e. this msg is the second of the two).

较早的帖子 - 以原始语言显示

“regEx.py” is in my folder.

较早的帖子 - 以原始语言显示

In that case I would look for a copy of the cms folder on a working machine and try copying it over.

较早的帖子 - 以原始语言显示

Or try copying “C:\Paratext8 Projects\cms” to “C:\My Paratext 8 Projects\cms"

较早的帖子 - 以原始语言显示

Which version of Paratext are you ? I can’t find that error message anywhere in the latest code 8.0 or 9.0). :thinking:

较早的帖子 - 以原始语言显示

I see that message when I remove regex.py and run 8.0.100.81.
In 9.0 I just got an exception error.

较早的帖子 - 以原始语言显示

The message is coming from our issue tracking system - I’ll adjust the text of the 8.0 message to match what I put on the 9.0 error report anon848905 got.

John+Wickberg

较早的帖子 - 以原始语言显示
0

It is not necessary to hold shift while clicking on Tools to get to RegEx Pal. The Advanced menu should appear without holding shift.

较早的帖子 - 以原始语言显示
(9.9k 分) 发布

Corrected.

较早的帖子 - 以原始语言显示
0

Am I right that only by it from the Paratext menus, you benefit from it automatically adding points to the Project History, or will it still do that even if you run it by double-clicking the executable?

较早的帖子 - 以原始语言显示
(1.4k 分) 发布

Two topics on regular expressions in Paratext are:

  1. Useful Regular Expressions
  2. Can regular expressions be used in Paratext?
较早的帖子 - 以原始语言显示

The executable is no longer accessible externally with PT8/9. You must run RegEx Pal from within the Paratext program. If you are accessing an external executable file (maybe a shortcut from an earlier installation of Paratext) you are most likely accessing data in the Paratext 7 folder.

较早的帖子 - 以原始语言显示

I’ve added them as hyperlinks to the top post in the conversation, under the title “See also”.

I anon421222’t know if you were saying that there was no need for me to start this conversation, since there are already conversations on RegExes – maybe you weren’t. But, in any case, my intention was for this conversation to be about the RegEx Pal tool specifically, and there is no conversation of r Help article for this tool

较早的帖子 - 以原始语言显示

相关问题

0
10 个回答 2.1k 次浏览
Is there are way to get the expressions on the User menu in RegEx Pal as a text file? The list of user ... . The latter could help us build a library of useful expressions.
wdavidhj 1.4k 发布 提问于 九月 10, 2015
+1
5 个回答 893 次浏览
我想在某些情况下将小写更改为大写--例如,我想将冒号后的所有小写字母更改为大写 在 RegEx Pal 中,没有单一的规则可以实现这一点,但有一个未记录的功能允许我创建一个简单更改的列表来运行 (注意:有一些正则表达式可以做到这一点,但在 ... A 可能还有其他一些事情不能按预期工作 如果您想尝试此方法,我建议从一个非常简单的列表开始,然后逐步添加内容
Phil_Leckrone 9.9k 发布 提问于 三月 2, 2022
0
5 个回答 753 次浏览
It appears that for all projects that I have created in PT8 RegEx Pal displays text in the find and replace windows using ... What do I need to do to stop this from happening?
Kent Spielmann 1.8k 发布 提问于 二月 26, 2018
0
8 个回答 1.5k 次浏览
Can someone answer definitively: What flavour of regex is used in RegEx Pal? Scope in my title is to encourage people ... used in this context. See next post for an example.
wdavidhj 1.4k 发布 提问于 七月 20, 2016
0
8 个回答 1.4k 次浏览
We have a user who has inserted a lot of \pn and some \nd inside of footnotes. We now know we need those to be ... the search to inside of a single footnote? Thank you, MSEAIT/LT
MSEAIT_LT 478 发布 提问于 八月 20, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户