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,824
Groaned at 81 Times in 60 Posts
Thanked 6,109 Times in 2,248 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,453
Groaned at 25 Times in 23 Posts
Thanked 6,029 Times in 2,744 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: 3,833
Groaned at 106 Times in 82 Posts
Thanked 4,064 Times in 2,049 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 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,583
Groaned at 50 Times in 31 Posts
Thanked 2,339 Times in 1,291 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: 769
Groaned at 20 Times in 13 Posts
Thanked 657 Times in 281 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,484
Groaned at 22 Times in 16 Posts
Thanked 1,843 Times in 901 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,244
Groaned at 143 Times in 125 Posts
Thanked 12,733 Times in 5,180 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,824
Groaned at 81 Times in 60 Posts
Thanked 6,109 Times in 2,248 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,710
Groaned at 247 Times in 158 Posts
Thanked 13,714 Times in 5,818 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: 751
Groaned at 133 Times in 79 Posts
Thanked 604 Times in 283 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,824
Groaned at 81 Times in 60 Posts
Thanked 6,109 Times in 2,248 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,824
Groaned at 81 Times in 60 Posts
Thanked 6,109 Times in 2,248 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 06:55.


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