DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > The Corner Pub

Reply
 
Thread Tools Display Modes
Old 01-15-2016, 11:16 PM   #1
Andrew B.
Staff
 
Andrew B.'s Avatar
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,528
Default I'm learning RegEx

I got a copy of Sams Teach Yourself Regular Expressions in 10 Minutes based on customer comments. So far it's pretty easy to follow. It also helped me understand why I could never figure it out RegEx by looking at coding examples. The method used for escaping metacharacters sometimes does the reverse. And sometimes metacharacters are escaped based on proximity. This is the most inconsistent command language I've ever worked with.

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 01-16-2016, 12:50 PM   #2
terrie
Staff
 
Join Date: Oct 2004
Posts: 8,944
Default

What is RegEx used for?



Terrie
terrie is offline   Reply With Quote
Old 01-16-2016, 02:24 PM   #3
Andrew B.
Staff
 
Andrew B.'s Avatar
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,528
Default

It's used to define a pattern of text (characters and numbers) so one can validate strings, find strings, or search-and-replace strings.

http://www.regular-expressions.info/
http://blog.codinghorror.com/regex-use-vs-regex-abuse/

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 01-16-2016, 02:57 PM   #4
terrie
Staff
 
Join Date: Oct 2004
Posts: 8,944
Default

Ahh...interesting but...not something I have ever needed...'-}}


Thanks...

Terrie
terrie is offline   Reply With Quote
Old 08-01-2017, 10:01 PM   #5
Andrew B.
Staff
 
Andrew B.'s Avatar
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,528
Default

I am no longer happy with the book. I just got back to reading it and began to wonder if it has if-then-else or similar logic. I searched on the Internet and found out that it does. But it's not covered in the book. i guess because it's a beginner book. As a former spreadsheet user I used those kinds of statements all the time. Usually nested. I could not determine if Regex allows nesting them.

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 08-02-2017, 01:14 PM   #6
terrie
Staff
 
Join Date: Oct 2004
Posts: 8,944
Default

It's so difficult to choose a tech book when you can't look at the index or look for something you know how to do and see how the book covers it to determine if it's a good fit...


Terrie
terrie is offline   Reply With Quote
Old 08-04-2017, 05:56 PM   #7
Andrew B.
Staff
 
Andrew B.'s Avatar
 
Join Date: Jan 2005
Location: Los Angeles, California
Posts: 3,528
Default

I switched over to taking a class at Lynda.com. It was going great until the teacher didn't clarify enough. I had to study the example to understand what he was getting at. It's not enough to state in English what an expression says; sometimes one needs to add a clarifying statement. But he failed to do it. I'm going to forge ahead anyway.

I never explained what I need this for. It's because I use a few programs which would be much more useful for me if I knew how to use their regex abilities. Two are renaming utilities and one is a text-to-speech utility.

   
__________________
fallberry.com
Andrew B. is offline   Reply With Quote
Old 08-05-2017, 02:39 PM   #8
terrie
Staff
 
Join Date: Oct 2004
Posts: 8,944
Default

Quote:
andrew: sometimes one needs to add a clarifying statement.
I know exactly what you mean! Giving a sense of where it's practical to use and what it provides that other options/expressions don't...


Terrie
terrie is offline   Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
regex negation Andrew B. General Publishing Topics 7 08-26-2012 03:36 PM
Another Regex Question Andrew B. General Publishing Topics 2 03-09-2012 11:04 PM
Regex Question Andrew B. General Publishing Topics 2 09-20-2011 08:46 PM
Need Regex help Andrew B. General Publishing Topics 7 05-08-2011 09:56 AM
RegEx help dacoyle Web Site Building & Maintenance 6 04-14-2009 08:48 AM


All times are GMT -8. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.