02-16-2016
Hello Aia, and thanks for the response.
I'm interested in learning the ins and outs of regular expressions for the purpose of crossword and other word puzzle writing.
Typically with crossword writing, the basic grep commands are more than sufficient for any needs that I might have.
But lately I'm developing some new types of word puzzles, and I'm trying to perform some search operations which are difficult but I believe may be possible in Unix. I suspect a Perl script could be written to do what I need, but I don't know enough about it to be sure about that either.
I started a thread some time ago that discussed the actual problem. Received some very thoughtful feedback and some code that seemed promising, but it became complicated so quickly that I couldn't follow. I realized I would have to learn a lot more just to understand the approaches and solutions that people were sending me. So I figure a few hours with a face-to-face meeting would be helpful.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can i create a regular expression which can detect a new line charcter followed by a special character say * and replace these both by a string of zero length?
Eg:
Input File san.txt
hello
hi ... (6 Replies)
Discussion started by: sandeep_hi
6 Replies
2. Shell Programming and Scripting
Hi,
can anyone advise me how to shorten this:
if || ; then
I tried but it dosent seem to work, whats the correct way.
Cheers (4 Replies)
Discussion started by: jack1981
4 Replies
3. Shell Programming and Scripting
I have following content in the file
CancelPolicyMultiLingual3=U|PC3|EN
RestaurantInfoCode1=U|restID1|1
.....
I am trying to use following matching extression
\|(+)
to get this
PC3|EN
restID1|1
Obviously it does not work.
Any ideas? (13 Replies)
Discussion started by: arushunter
13 Replies
4. UNIX for Dummies Questions & Answers
Hi Gurus,
I need help with regular expressions. I want to create a regular expression which will take only alpha-numeric characters for 7 characters long and will throw out an error if longer than that.
i tried various combinations but couldn't get it, please help me how to get it guys.
... (2 Replies)
Discussion started by: ragha81
2 Replies
5. Shell Programming and Scripting
Hi gurus,
Can any of you suggest any good link for going through tagged regular expressions for unix.I am finding it quite critical and need some help from all gurus to know this better.
Any good link containing detailed examples with descriptions would do i guess.
thanks in advance. (0 Replies)
Discussion started by: navojit dutta
0 Replies
6. Shell Programming and Scripting
Hi,
In ksh, I am trying to compare folder names having -141- in it's name.
e.g.: 4567-141-8098 should match this expression '*-141-*'
but, -141-2354 should fail when compared with '*-141-*'
simlarly, abc should fail when compared with '*-141-*'
I tried multiple things but nevertheless,... (5 Replies)
Discussion started by: jidsh
5 Replies
7. Shell Programming and Scripting
what elements does " /^/ " match?
I did the test which indicates that it matches single lowercase character like 'a','b' etc. and '1','2' etc.
But I really confused with that. Because, "/^abc/" matches strings like "abcedf" or "abcddddee".
So, what does caret ^ really mean?
Any response... (2 Replies)
Discussion started by: DavidHe
2 Replies
8. Shell Programming and Scripting
need a regex that matches when a number has a zero (0) at the end of it
so like
10
20
120
30
330
1000
and so on (6 Replies)
Discussion started by: linuxkid
6 Replies
9. Shell Programming and Scripting
I am new to shell scripts.Can u please help me on this req.
test_user = "Arun"
if
echo "test_user is a word"
else
echo "test_user is not a word" (1 Reply)
Discussion started by: chandrababu
1 Replies
10. Shell Programming and Scripting
Hi
Ilove unix and alwyas trying to to learn unix,but i am weak in using regular expressions.can you please give me a littel brief discription that how can i understand them and how to use .your response could lead a great hand in my unix love. (1 Reply)
Discussion started by: manoj attri
1 Replies
LEARN ABOUT OPENSOLARIS
genlib_copy_up_all_con
GENLIB_COPY_UP_ALL_CON.3(October 1, 1997) GENLIB_COPY_UP_ALL_CON.3(October 1, 1997)
NAME
GENLIB_COPY_UP_ALL_CON - copy all physical connectors of an instance face in the current figure
SYNOPSYS
#include <genlib.h>
void GENLIB_COPY_UP_ALL_CON(face, insname, concatenate)
char face, concatenate;
char *insname;
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
PARAMETERS
face Face of the instance
insname Name of the instance the connector belongs to
concatenate Indicates wheter or not to concatenate instance connectors names with instance name
DESCRIPTION
COPY_UP_ALL_CON copies all instance connectors of the face face of the placed instance called insname into the current layout. The con-
catenate argument may take two values:
YES then the resulting name of a connector in the current figure is the concatenation of the insname and the conname. It
warranties the unicity of name at the figure level, and is to be used most of the time.
NO implies a direct copy of the connector name. The user must take care of the unicity of connector name by itself.
Two behaviour are expected, depending on each of the instance connectors location regarding the abutment box of the
current figure.
Connector on the abutment box
The figure connector is place right over the instance connector. The single connector is duplicated.
Connector inside the abutment box
The instance connector face is computed in the figure, and then, the connector is duplicated on the given face, at the
right coordinates for this face. Then a wire is drawn between the instance connector and the figure connector in the
connector layer.
ERRORS
"GENLIB_COPY_UP_ALL_CON impossible : missing GENLIB_DEF_PHFIG"
No figure has been yet specified by a call to DEF_PHFIG. So it isn't possible to place a connector inside it. you must call
DEF_PHFIG before any other layout action.
"*** genlib error *** GENLIB_COPY_UP_ALL_CON impossible : connector conname face face of instance insname, current figure doesn't exist"
No connector matches both the conname and the face arguments.
EXAMPLE
#include <genlib.h>
main()
{
/* Create a figure to work on */
GENLIB_DEF_PHFIG("cell");
.
.
GENLIB_PLACE_LEFT("gaer0_f", "insN", SYMXY);
.
.
GENLIB_DEF_AB(0L, 0L, 0L, 0L);
/* Copy all connectors */
GENLIB_COPY_UP_ALL_CON(NORTH, "insN", YES);
/* Save that on disk */
GENLIB_SAVE_PHFIG();
}
SEE ALSO
genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3), GENLIB_COPY_UP_CON(3), GENLIB_COPY_UP_CON_FACE(3), GENLIB_PHCON(3), GEN-
LIB_THRU_CON_H(3), GENLIB_THRU_CON_V(3).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
PROCEDURAL GENERATION LANGUAGE
ASIM/LIP6 GENLIB_COPY_UP_ALL_CON.3(October 1, 1997)