Log In

Your email is not your username

Register

If you were a member of the old Bodybuilding.com forums and would like to reuse your previous username, you can request it below. We use your email only for registration and do not store it. For more information, please see our Privacy Policy.

Confirm your email

A registration code was sent to your email. Enter it here.

Welcome

You have successfully setup your account.

Sign in

Quick Navigation Bottom Misc
Forum
ยป Why does anyone use regular expressions?
  1. Results 1 to 6 of 6
post 1678063623 02-28-2023, 06:07 AM
-
#1
  1. DomMJr
  2. Registered User
  1. DomMJr
  2. Registered User
  3. Join Date: Dec 2022
  4. Age: 56
  5. Posts: 7,380
  6. Rep Power: 23077

Why does anyone use regular expressions?

They're a headache to read.

How is even 3 lines of code not worth it so anyone can read the logic?

Is there a context where they cannot fit a few lines?
Seems like nonsense.
post 1678064363 02-28-2023, 06:31 AM
-
#2
  1. Rotmaxxer
  2. Registered User
  1. Rotmaxxer
  2. Registered User
  3. Join Date: Feb 2023
  4. Age: 56
  5. Posts: 1,342
  6. Rep Power: 2471
Lolwat ๐Ÿ˜„ they make basic string matching so much easier ๐Ÿค” what are you gonna implement a state machine everytime you need to find a pattern? ๐Ÿ˜‚๐Ÿ‘

Sounds like you just need to up your regexfu game srs ๐Ÿ˜„๐Ÿ‘
Israeli Jew Crew ๐Ÿ‡ฎ๐Ÿ‡ฑโœก๏ธ๐Ÿ‘
Emoji Crew ๐Ÿ˜„
Rot Crew ๐Ÿ˜ตโ€๐Ÿ’ซ

If you have to resort to commenting on my emojis ๐Ÿค” then you already lost ๐Ÿ˜‚๐Ÿ‘
post 1678074393 02-28-2023, 10:05 AM
-
#3
  1. lockdev
  1. lockdev
  2. Join Date: Nov 2012
  3. Posts: 15,303
  4. Rep Power: 134955
If you're a professional coder: Consider a new career.

Signed,
A professional coder. srs.
Misc Entrepreneur Crew
post 1678074493 02-28-2023, 10:07 AM
-
#4
  1. Getter_done
  1. Getter_done
  2. Join Date: Dec 2008
  3. Posts: 138,240
  4. Subscribers: 6
  5. Rep Power: 1140645
Originally Posted By Rotmaxxer
Lolwat they make basic string matching so much easier what are you gonna implement a state machine everytime you need to find a pattern?

Sounds like you just need to up your regexfu game srs
Originally Posted By lockdev
If you're a professional coder: Consider a new career.

Signed,
A professional coder. srs.
I dont know whats going on but op got rekt.
post 1678075363 02-28-2023, 10:21 AM
-
#5
  1. Dogkrack
  2. Banned
  1. Dogkrack
  2. Banned
  3. Join Date: Jun 2019
  4. Posts: 14,820
  5. Rep Power: 0
its ****gytime, but you can google whatever pattern youre looking for and modify to meet your needs
post 1678075783 02-28-2023, 10:29 AM
-
#6
  1. Rotmaxxer
  2. Registered User
  1. Rotmaxxer
  2. Registered User
  3. Join Date: Feb 2023
  4. Age: 56
  5. Posts: 1,342
  6. Rep Power: 2471
Originally Posted By lockdev
If you're a professional coder: Consider a new career.

Signed,
A professional coder. srs.
No need to be so harsh ๐Ÿค” it's something you can pick up as you go ๐Ÿ˜„๐Ÿ‘

Besides, you really should avoid using regex in-code ๐Ÿค” you should aim to get a structured input ๐Ÿ˜„ not some strings that you need to parse like you're in the early 2000's ๐Ÿ˜‚๐Ÿ‘ it's useful for grepping things (code, logs, etc.) but avoid it when you can ๐Ÿค”๐Ÿค”
Israeli Jew Crew ๐Ÿ‡ฎ๐Ÿ‡ฑโœก๏ธ๐Ÿ‘
Emoji Crew ๐Ÿ˜„
Rot Crew ๐Ÿ˜ตโ€๐Ÿ’ซ

If you have to resort to commenting on my emojis ๐Ÿค” then you already lost ๐Ÿ˜‚๐Ÿ‘
Quick Navigation Top Misc
Bookmarks
Digg.com
Digg
del.icio.us
del.icio.us
Stumbleupon.com
StumbleUpon
Google.com
Google
Facebook.com
Facebook
Posting Permissions
  1. You may not post new threads
  2. You may not post replies
  3. You may not post attachments
  4. You may not edit your posts