View previous topic :: View next topic
|
Author |
Message |
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
abhit007 wrote: |
Ignore the example in prev post , consider this example where parenthesis is balanced.
Since there are multiple Ids it is coming in multiple lines. |
Enrico, Working on a distant-contract, by any chance? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I think this is more simpler logic:
Quote: |
1. Change all '(', ')', and ',' to blanks.
2. for each word of each line, use POS function to see if it has the '@' character.
|
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
Enrico, Working on a distant-contract, by any chance? |
nope!
writing scanners and parsers is one of my preferred subjects
so when I see something related I like to explore all the alternatives, not only just working ,
but also not trivial from a scanning/parsing algorithmic point of view
stay tuned I hav a nice snippet coming ! |
|
Back to top |
|
|
|