Forum:The best LLM or any tool to generate legal regex expression string for specific usage?
0
1
Entering edit mode
4 months ago
JustinZhang ▴ 140

I'm sure I'm not the only one who often use awk/sed/grep/ripgrep/fd with complicated regex to deal with some tasks about text files, and sometimes writting a legal and elegant expression is not easy. As a result, I rely on LLM to write it.

However, I find out that chatGPT and some other LLMs might fail this job, because 1) the task is too complicated for them, even in reasoning mode; 2) the train data is outdated, so they don't know the usage of ripgrep / fd and other new tools.

Do you know some LLMs & tools that are super powerful (able to solve it within 3 rounds of talking / in 5 minutes) in this case?

regex awk sed commands linux • 910 views
ADD COMMENT
0
Entering edit mode

I, personally, did not yet encounter any that will do this nicely unfortunately (and I gave several a try already). It usually fails to grasp even the basic concepts of regex writing

(and good to hear others are struggling with this as well )

ADD REPLY
0
Entering edit mode

Can you provide an example of something that you have tried that did not work? Perhaps it is matter of the question you ask and how you ask it.

ADD REPLY

Login before adding your answer.

Traffic: 4329 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6