Go Back   English Forum Switzerland > Off-Topic > Off-Topic > General off-topic
Reply
 
Thread Tools Display Modes
  #1  
Old 27.04.2016, 18:13
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,927
Groaned at 83 Times in 61 Posts
Thanked 6,356 Times in 2,336 Posts
slammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond repute
Stupid, stupid Regex

Had the worst day in a month long training course at Kodak in Belgium.
Topic is Preps and Prinergy, nice stuff, very complicated for what is in effect a raster image processor on steroids, all has been going well until today.
Regex, or regular expressions automated rules with lots of "$" and "#" and stuff.
It all made a nice swishing sound as it went a mile over my head, Regex is Slammerīs kryptonite, I simply canīt get my head around it.

Sorry just needed to blow off some steam, and now off for some Belgian beer.
Reply With Quote
  #2  
Old 27.04.2016, 19:06
hannah'sauntie's Avatar
Forum Legend
 
Join Date: Jan 2010
Location: Baden
Posts: 4,532
Groaned at 25 Times in 23 Posts
Thanked 6,235 Times in 2,823 Posts
hannah'sauntie has a reputation beyond reputehannah'sauntie has a reputation beyond reputehannah'sauntie has a reputation beyond reputehannah'sauntie has a reputation beyond reputehannah'sauntie has a reputation beyond reputehannah'sauntie has a reputation beyond repute
Re: Stupid, stupid Regex

Well, I think I understood your post about as much as you understood your course.

I did understand 'beer' though, so enjoy!

Hope tomorrow goes better.
Reply With Quote
  #3  
Old 27.04.2016, 19:20
roegner's Avatar
Forum Legend
 
Join Date: May 2011
Location: Zurich
Posts: 4,701
Groaned at 161 Times in 137 Posts
Thanked 5,072 Times in 2,550 Posts
roegner has a reputation beyond reputeroegner has a reputation beyond reputeroegner has a reputation beyond reputeroegner has a reputation beyond reputeroegner has a reputation beyond reputeroegner has a reputation beyond repute
Re: Stupid, stupid Regex

No clue either but I can recommend the Belgian beer! Try an Orval if you can get one
Reply With Quote
  #4  
Old 27.04.2016, 19:25
Forum Legend
 
Join Date: Apr 2008
Location: Zurich
Posts: 2,660
Groaned at 52 Times in 33 Posts
Thanked 2,457 Times in 1,350 Posts
rainer_d has a reputation beyond reputerainer_d has a reputation beyond reputerainer_d has a reputation beyond reputerainer_d has a reputation beyond reputerainer_d has a reputation beyond repute
Re: Stupid, stupid Regex

https://regex101.com

and

http://shop.oreilly.com/product/0636920012337.do
Reply With Quote
  #5  
Old 27.04.2016, 21:47
ipoddle's Avatar
Forum Veteran
 
Join Date: Jan 2008
Location: basel
Posts: 781
Groaned at 20 Times in 13 Posts
Thanked 673 Times in 289 Posts
ipoddle has earned the respect of manyipoddle has earned the respect of manyipoddle has earned the respect of many
Re: Stupid, stupid Regex

Oooohhhh... I'm lifting the veil

Was taught how to use Regular Expressions in about 1982.. learning C, shell and Unix as an undergrad.

It's horrible .. until you realise you can logically manipulate a book load of text in a few, beautifully crafted lines of 'code'.

Anyway.. can I suggest a new thread 'I was on a training course today and didn't understand anything'.
Reply With Quote
  #6  
Old 27.04.2016, 22:01
me.anon's Avatar
Forum Veteran
 
Join Date: Jan 2012
Location: thun
Posts: 1,489
Groaned at 22 Times in 16 Posts
Thanked 1,851 Times in 906 Posts
me.anon has a reputation beyond reputeme.anon has a reputation beyond reputeme.anon has a reputation beyond reputeme.anon has a reputation beyond reputeme.anon has a reputation beyond repute
Re: Stupid, stupid Regex

Quote:
View Post
Oooohhhh... I'm lifting the veil

Was taught how to use Regular Expressions in about 1982.. learning C, shell and Unix as an undergrad.

It's horrible .. until you realise you can logically manipulate a book load of text in a few, beautifully crafted lines of 'code'.

Anyway.. can I suggest a new thread 'I was on a training course today and didn't understand anything'.
A true Unix Admin can write a flawless yard long regular expression with 8 large beers in the belly.
Reply With Quote
  #7  
Old 27.04.2016, 22:05
NotAllThere's Avatar
Forum Legend
 
Join Date: Oct 2008
Location: Baselland
Posts: 9,436
Groaned at 145 Times in 127 Posts
Thanked 13,058 Times in 5,302 Posts
NotAllThere has a reputation beyond reputeNotAllThere has a reputation beyond reputeNotAllThere has a reputation beyond reputeNotAllThere has a reputation beyond reputeNotAllThere has a reputation beyond reputeNotAllThere has a reputation beyond repute
Re: Stupid, stupid Regex

When I have to do any complicated regex, I outsource it to my regex expert friend. Frankly, I can't be bothered to fill my head with that stuff - I work at a higher level of abstraction.
Reply With Quote
  #8  
Old 27.04.2016, 22:58
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,927
Groaned at 83 Times in 61 Posts
Thanked 6,356 Times in 2,336 Posts
slammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond repute
Re: Stupid, stupid Regex

Thing is these are not regular regular expressions, more like regular expressions in Klingon.
Anyway even after Belgian beer I canīt get my head around them.
Reply With Quote
  #9  
Old 27.04.2016, 23:22
Phil_MCR's Avatar
Forum Legend
 
Join Date: Oct 2009
Location: Basel
Posts: 11,910
Groaned at 255 Times in 166 Posts
Thanked 14,066 Times in 5,957 Posts
Phil_MCR has a reputation beyond reputePhil_MCR has a reputation beyond reputePhil_MCR has a reputation beyond reputePhil_MCR has a reputation beyond reputePhil_MCR has a reputation beyond reputePhil_MCR has a reputation beyond repute
Re: Stupid, stupid Regex

Googling for Klingon regex returns quite a number of results!
Reply With Quote
  #10  
Old 27.04.2016, 23:27
Troublawesome's Avatar
Forum Veteran
 
Join Date: Mar 2014
Location: Zug
Posts: 777
Groaned at 134 Times in 80 Posts
Thanked 618 Times in 291 Posts
Troublawesome is considered unworthyTroublawesome is considered unworthyTroublawesome is considered unworthyTroublawesome is considered unworthy
Re: Stupid, stupid Regex

Regex looks like you banged your head on the keyboard.
Reply With Quote
  #11  
Old 28.04.2016, 07:43
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,927
Groaned at 83 Times in 61 Posts
Thanked 6,356 Times in 2,336 Posts
slammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond repute
Re: Stupid, stupid Regex

Quote:
View Post
Googling for Klingon regex returns quite a number of results!
Well Iīll be damned, so there is!
Reply With Quote
  #12  
Old 28.04.2016, 08:24
SpiritV's Avatar
Member
 
Join Date: Jul 2013
Location: Tannhauser Gate
Posts: 200
Groaned at 1 Time in 1 Post
Thanked 362 Times in 111 Posts
SpiritV has a reputation beyond reputeSpiritV has a reputation beyond reputeSpiritV has a reputation beyond reputeSpiritV has a reputation beyond repute
Re: Stupid, stupid Regex

Regex is among the most useful things I've learnt when dealing with computers. Sure, they look confusing as all hell at first, but seriously, Regexes are a thing of beauty.

While I don't work with Ruby all that often, I thought that http://rubular.com was an incredibly useful tool to test your Regexes.

Some useful hints based on my experience:
  • More often than not, you want your Regexes to be non-greedy. So use the question mark
  • Rarenteses are your friends for text manipulation
  • If you work with InDesign's JS engine, it's got its own dialect. Prepare for pain when escaping characters. All the slashes.

But in all seriousness: Keep at it.
Reply With Quote
  #13  
Old 28.04.2016, 09:13
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,927
Groaned at 83 Times in 61 Posts
Thanked 6,356 Times in 2,336 Posts
slammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond reputeslammer has a reputation beyond repute
Re: Stupid, stupid Regex

Methinks with a bit of brain grease I could get my head around the regular regular expressions, however with Kodakīs particular brand, not to sure.
Attached Thumbnails
stupid-stupid-regex-apa.jpg  
Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid, stupid, Saudi men! Sbrinz International affairs/politics 89 13.10.2015 16:39
Being Stupid TheRev22 Transportation/driving 14 12.03.2013 08:04
Stupid everyday expressions Louis Wu General off-topic 85 12.09.2009 19:17
Stupid Dog Owner Mrs. Doolittle Pet corner 16 31.08.2009 12:24
Plane Stupid stuartq Jokes/funnies 1 18.05.2008 10:38


All times are GMT +2. The time now is 11:09.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0