Go Back   English Forum Switzerland > Off-Topic > Off-Topic > General off-topic
Reply
 
Thread Tools Display Modes
  #1  
Old 27.04.2016, 19:13
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,667
Groaned at 79 Times in 58 Posts
Thanked 5,792 Times in 2,134 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, 20:06
hannah'sauntie's Avatar
Forum Legend
 
Join Date: Jan 2010
Location: Baden
Posts: 4,374
Groaned at 25 Times in 23 Posts
Thanked 5,891 Times in 2,676 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, 20:20
roegner's Avatar
Forum Legend
 
Join Date: May 2011
Location: Zurich
Posts: 3,058
Groaned at 88 Times in 66 Posts
Thanked 3,090 Times in 1,584 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, 20:25
Forum Veteran
 
Join Date: Apr 2008
Location: Zurich
Posts: 2,465
Groaned at 50 Times in 31 Posts
Thanked 2,234 Times in 1,228 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, 22:47
ipoddle's Avatar
Forum Veteran
 
Join Date: Jan 2008
Location: basel
Posts: 752
Groaned at 20 Times in 13 Posts
Thanked 615 Times in 269 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, 23:01
me.anon's Avatar
Forum Veteran
 
Join Date: Jan 2012
Location: thun
Posts: 1,454
Groaned at 22 Times in 16 Posts
Thanked 1,768 Times in 870 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, 23:05
NotAllThere's Avatar
Forum Legend
 
Join Date: Oct 2008
Location: Baselland
Posts: 8,988
Groaned at 140 Times in 122 Posts
Thanked 12,275 Times in 5,017 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, 23:58
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,667
Groaned at 79 Times in 58 Posts
Thanked 5,792 Times in 2,134 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 28.04.2016, 00:22
Phil_MCR's Avatar
Forum Legend
 
Join Date: Oct 2009
Location: Basel
Posts: 11,485
Groaned at 246 Times in 157 Posts
Thanked 13,338 Times in 5,682 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 28.04.2016, 00:27
Troublawesome's Avatar
Forum Veteran
 
Join Date: Mar 2014
Location: Zug
Posts: 722
Groaned at 124 Times in 75 Posts
Thanked 583 Times in 271 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, 08:43
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,667
Groaned at 79 Times in 58 Posts
Thanked 5,792 Times in 2,134 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, 09: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, 10:13
slammer's Avatar
Forum Legend
 
Join Date: Jul 2009
Location: Lummerland
Posts: 3,667
Groaned at 79 Times in 58 Posts
Thanked 5,792 Times in 2,134 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 17:39
Being Stupid TheRev22 Transportation/driving 14 12.03.2013 09:04
Stupid everyday expressions Louis Wu General off-topic 85 12.09.2009 20:17
Stupid Dog Owner Mrs. Doolittle Pet corner 16 31.08.2009 13:24
Plane Stupid stuartq Jokes/funnies 1 18.05.2008 11:38


All times are GMT +2. The time now is 22:30.


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