create account

Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht by mein-senf-dazu

View this thread on: hive.blogpeakd.comecency.com
· @mein-senf-dazu ·
$1.54
Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht
## EN (DE unten) 
  
Hello dear community,

In programming, there are RegEx (Regular Expressions) that can be used to search for patterns in a text.

If you have a text that contains a number and you only want the number, you can use RegEx. You can then use certain characters to define different conditions. For example, the "." dot stands for exactly one arbitrary character, if you combine it with an asterisk ".*" it stands for any number of arbitrary characters. However, if you are not looking for a character, you must use ".?", because "." will always search for a character.

Ok, ok, I'll stop already. I can do some basic things, but most of the time I don't feel like thinking about what the RegEx has to look like for certain things. That's why I tend to try to work around it and solve it in other ways.

I haven't done enough work on it because I don't want to and then it's difficult.

![](https://images.ecency.com/DQmYU8Z9oDnPwCBd5nbh9mVod24GV25YeXSE5GcrdNPSRA1/grafik.png)

I thought that ChatGPT would help me with this. Unfortunately, it took a few attempts because ChatGPT didn't give me the right solution straight away, I had to correct it a few times.

It was still helpful in the end, of course, but it could have gone better.
I'll still use it though, because as I said I don't like it and have even less nerve to do it all by myself LOL


Translated with DeepL.com (free version)  
  
 ## DE
Hallo liebe Community,

in der Programmierung gibt es RegEx (Regular Expressions), mit dem man nach Mustern in einem Text suchen kann.

Wenn man einen Text hat, der eine Zahl enthält und nur die Zahl haben will, kann man dafür RegEx nutzen. Durch bestimmte Zeichen kann man dann unterschiedliche Bedingungen festlegen. So steht der "." Punkt z.B. für genau ein Beliebiges Zeichen, kombiniert man es mit einem Stern ".*" steht es für beliebig viele Beliebige Zeichen. Sofern man aber auch ggf, kein Zeichen sucht, dann muss man ".?" nutzen, denn bei "." wird auf jeden Fall ein Zeichen gesucht.

Ok, ok ich höre ja schon auf. Ich kann so einige grundlegende Sachen, aber meist habe ich keine Lust mir das zu überlegen, wie denn der RegEx für bestimmte Sachen aussehen muss. Deswegen versuche ich dann eher es zu umgehen und anderweitig zu lösen.

Ich habe mich damit nicht ausreichend beschäftigt, weil ich es nicht möchte und dann ist es auch schwer.

![](https://images.ecency.com/DQmYU8Z9oDnPwCBd5nbh9mVod24GV25YeXSE5GcrdNPSRA1/grafik.png)

Ich dachte, nun gibt es ja ChatGPT und der wird mir dabei helfen. Leider hat es aber ein paar Anläufe gebraucht, da ChatGPT mir nicht direkt die richtige Lösung gegeben hat, musste Ihn paar mal korrigieren.

War am Ende natürlich dennoch hilfreich, aber es hätte besser laufen können.
Werde es aber dennoch weiterhin nutzen, denn wie gesagt ich mag es nicht und habe noch weniger die Nerven es ganz alleine zu machen LOL



Posted Using [InLeo Alpha](https://inleo.io/@mein-senf-dazu/not-a-fan-of-regex-nor-is-chatgpt-kein-fan-von-regex-chatgpt-wohl-auch-nicht-3wy)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authormein-senf-dazu
permlinknot-a-fan-of-regex-nor-is-chatgpt-kein-fan-von-regex-chatgpt-wohl-auch-nicht-3wy
categoryhive-167922
json_metadata{"app":"leothreads/0.3","format":"markdown","tags":["hive-167922","DEUTSCH","PROOFOFBRAIN","INLEO","CCC","ALIVE","VYB","LEOFINANCE","HIVE-ENGINE"],"canonical_url":"https://inleo.io/@mein-senf-dazu/not-a-fan-of-regex-nor-is-chatgpt-kein-fan-von-regex-chatgpt-wohl-auch-nicht-3wy","links":["https://images.ecency.com/DQmYU8Z9oDnPwCBd5nbh9mVod24GV25YeXSE5GcrdNPSRA1/grafik.png)","https://images.ecency.com/DQmYU8Z9oDnPwCBd5nbh9mVod24GV25YeXSE5GcrdNPSRA1/grafik.png)","https://inleo.io/@mein-senf-dazu/not-a-fan-of-regex-nor-is-chatgpt-kein-fan-von-regex-chatgpt-wohl-auch-nicht-3wy)"],"images":[],"isPoll":false,"dimensions":{}}
created2024-10-27 21:14:27
last_update2024-10-27 21:14:27
depth0
children3
last_payout2024-11-03 21:14:27
cashout_time1969-12-31 23:59:59
total_payout_value0.772 HBD
curator_payout_value0.770 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,027
author_reputation302,500,726,963,123
root_title"Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,110,233
net_rshares5,904,636,822,450
author_curate_reward""
vote details (33)
@beerlover ·
<div class='pull-right'>https://files.peakd.com/file/peakd-hive/beerlover/yiuU6bdf-beerlover20gives20BEER.gif<p><sup><a href='https://hive-engine.com/?p=market&t=BEER'>View or trade </a> <code>BEER</code>.</sup></p></div><center><br> <p>Hey @mein-senf-dazu, here is a little bit of <code>BEER</code> from @thehockeyfan-at for you. Enjoy it!</p> <p>Did you know that <a href='https://dcity.io/city</b>you can use <b>BEER</b> at dCity game</a> to buy cards to rule the world.</p> </center><div></div>
properties (22)
authorbeerlover
permlinkre-meinsenfdazu-not-a-fan-of-regex-nor-is-chatgpt-kein-fan-von-regex-chatgpt-wohl-auch-nicht-3wy-20241027t213118775z
categoryhive-167922
json_metadata{"app":"beerlover/3.0","language":"rust","developer":"wehmoen"}
created2024-10-27 21:31:18
last_update2024-10-27 21:31:18
depth1
children0
last_payout2024-11-03 21:31:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length499
author_reputation25,811,331,779,356
root_title"Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,110,427
net_rshares0
@hivebuzz ·
Congratulations @mein-senf-dazu! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x60/https://hivebuzz.me/badges/postallweek.png"></td><td>You have been a buzzy bee and published a post every day of the week.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mein-senf-dazu) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out our last posts:**
<table><tr><td><a href="/hive-122221/@hivebuzz/pud-202411"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202411">Hive Power Up Day - November 1st 2024</a></td></tr><tr><td><a href="/halloween/@hivebuzz/halloween-2024"><img src="https://images.hive.blog/64x128/https://files.peakd.com/file/peakd-hive/hivebuzz/48HBQsbpPcoRfe6NQgzk82mfFbSCd1F958x5Ym9cAiJnjMzqraeGnswMFHAzJNMK5c.png"></a></td><td><a href="/halloween/@hivebuzz/halloween-2024">Halloween Challenge - Publish Your Chilling Story for an Exclusive Halloween Badge!</a></td></tr></table>
properties (22)
authorhivebuzz
permlinknotify-1730086375
categoryhive-167922
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2024-10-28 03:32:54
last_update2024-10-28 03:32:54
depth1
children0
last_payout2024-11-04 03:32:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,270
author_reputation369,401,932,328,874
root_title"Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,118,818
net_rshares0
@thehockeyfan-at ·
!BEER
properties (22)
authorthehockeyfan-at
permlinkre-mein-senf-dazu-sm1ag0
categoryhive-167922
json_metadata{"tags":["hive-167922"],"app":"peakd/2024.10.7","image":[],"users":[]}
created2024-10-27 21:31:12
last_update2024-10-27 21:31:12
depth1
children0
last_payout2024-11-03 21:31:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5
author_reputation97,808,013,774,180
root_title"Not a fan of RegEx, nor is ChatGPT - Kein Fan von RegEx, ChatGPT wohl auch nicht"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id138,110,426
net_rshares0