Re: Newbie Regex confusion

2018-08-01 Thread Bob Sneidar via use-livecode
Wait until you get to the rapids. Bob S > On Aug 1, 2018, at 09:34 , David V Glasgow via use-livecode > wrote: > > I am just dipping my toes in the shallows of regex, and have already stubbed > my toe on a rock. Well two, actually. ___ use-live

Re: Newbie Regex confusion

2018-08-01 Thread David V Glasgow via use-livecode
Thank you both. Wow. Looks like it really is worth the effort! I played around on regex101.com, but the problem is if you don’t know the terms for what you want to do, its really hard to find the appropriate symbol. Thanks again. > On 1 Aug 2018, at 6:24 pm, Brian Milby via use-livecode >

Re: Newbie Regex confusion

2018-08-01 Thread Brian Milby via use-livecode
Don’t have time to test right now but something along these lines: \b[0-9] ?(yr|yo|year) \b is a word break ? Means 0 or 1 of previous char (space) | is alternate separator Thanks, Brian On Aug 1, 2018, 11:58 AM -0500, Stephen MacLean via use-livecode , wrote: > Hi David, > > While no expert on

Re: Newbie Regex confusion

2018-08-01 Thread Stephen MacLean via use-livecode
Hi David, While no expert on Regex, there are some online tools and libraries that you can use to work out the appropriate regex before putting it into your LC script. Some sites I use: https://www.regextester.com https://regex101.com https://www.rexegg.com/regex-quickstart.html and http:/

Newbie Regex confusion

2018-08-01 Thread David V Glasgow via use-livecode
I am just dipping my toes in the shallows of regex, and have already stubbed my toe on a rock. Well two, actually. I am looking to identify the lines of a field (that contain lots of words and symbols with no particular structure or separator ) finding age related terms, which can be in a var