12-02-2008
Reg Ex question
Hi All,
If I had a string that was a combination of plain text and quoted text - For ex
String: This "sentence is" a combination of "multiple words"
I wanted to know how I can write a reg-ex that splits the above string into the following
result[0] = This
result[1] = sentence is
result[2] = a
result[3] = combination
result[4] = of
result[5] = multiple words
Any help is welcome, thanks.
Regards,
garric
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
One of our jobs retrieves data from tables and writes it to files. This job was running for around 15 minutes for the past 8 months. Now, this job is runnig for 45-50 minutes. I checked with the DBA's and found no issues with database. The time taken by to job to write to the file is... (5 Replies)
Discussion started by: ranj@chn
5 Replies
2. Shell Programming and Scripting
Hi ,
I want gzip a folder te55 which has got 3 files test1.test2,test3
the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself...
Is it possible...
thanks in advance
sam (5 Replies)
Discussion started by: sam99
5 Replies
3. Shell Programming and Scripting
hi,
I am using this to get previous month
`date -d"1 month ago" "+%m"`
But will it work for january?..will it return 12?
Please advice. (2 Replies)
Discussion started by: vanathi
2 Replies
4. Shell Programming and Scripting
HI
system.sysUpTime.0 : Timeticks: (1519411311) 175 days, 20:35:13.11
From the above output i need only 175days in a perl script..
Please Help (2 Replies)
Discussion started by: Harikrishna
2 Replies
5. Shell Programming and Scripting
Hi,
Should be a difference between ']]*' and ']+' ?
I use them in bash with sed and grep.
Thanks (1 Reply)
Discussion started by: ynir
1 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am trying to send a mail by using MAILX option to my YAHOO-Id.
It is giving the following error. Can any one help me to find what is the problem? Do i need to get any kind of settings in my UNIX box for using MAILX?
The bounce mail is as below:
Message 1:
From MAILER-DAEMON Tue... (2 Replies)
Discussion started by: Raamc
2 Replies
7. Solaris
Hi Guys,
I have a doubt either to Reboot the server after Replacing the disk0.
I have two disks under vxvm root mirrored and i had a problem with primary disk so i replace the disk0 failed primary disk and then mirrored. After mirroring is it reboot required ? (7 Replies)
Discussion started by: kurva
7 Replies
8. Shell Programming and Scripting
Hi masters,
I have one doubt,
lets's say file1 has the following contents,
1
2.0
3.1
5.5
7
5.10
5.9
How to sort these contents to get the o/p like
1
2.0
3.1
5.5
5.9
5.10
7 (8 Replies)
Discussion started by: ecearund
8 Replies
9. Windows & DOS: Issues & Discussions
Since I cannot find a ffmpeg build that will automatically include a environment variable for the CMD ffmpeg command I'll probably have to do it myself.
However I would like to do so by saving it inside a .reg file.
For example if my path towards FFMPEG is:
C:\RESOURCE\FFMPEG\ffmpeg.exe
... (5 Replies)
Discussion started by: pasc
5 Replies
10. Shell Programming and Scripting
Need your help in creating regular expression for particular set. let say I have given two dates 20130623 to 20140625.
I need to create regular for the dates which fall in between above two dates. (4 Replies)
Discussion started by: gvkumar25
4 Replies
LEARN ABOUT REDHAT
dtformatter
formatter(n) Documentation tools formatter(n)
NAME
formatter - Interface specification for formatter code
DESCRIPTION
This manpage specifies the interface between the manpage processor mpexpand and the tcl code implementing the conversion into a particular
output format.
The tcl code has to provide
[1] Implementations of all commands specified in format(n), using the defined names
[2] and additionally implementations for
NumPasses
This command is called after the formatter is setup and has to return the number of passes required by this formatter to
process a manpage. This information has to be an integer number greater or equal to one.
PassSetup
This command is called at the beginning of each pass over the input. It can assume that the current number of the pass is
already set to the correct value and is responsible for setting up the internal state of the formatter for this pass.
PostProcess text
This command is called after last pass, with the expansion result of that pass, and can do any last-ditch modifications of
the generated result. Its result is the final text written to the output.
Most formats will use identity here.
HandleText text
This command is called for any plain text encountered by the processor in the input and can do any special processing
required for plain text. Its result is the string written into the expansion.
Most formats will use identity here.
The tcl code implementing all of the above can make the following assumptions:
[1] It has full access to its own non-safe interpreter. In other words, the formatter cannot damage the other parts of the processor,
but it can do damage to the filesystem. It is trusted in that way.
[2] The surrounding system provides the formatter code with the following commands:
mp_pass
This command returns the number of the current pass.
mp_file
This command returns the full name of the file currently processed, or stdin, if the input is read from there.
mp_module
This command returns the name of the module we are in.
cappend
cget
cis
cname
cpop
cpush
cset
lb
rb All of the above commands are methods of the expander object handling the input. Their arguments and results are described in
expander(n).
SEE ALSO
expander(n), format(n), mpexpand(n)
KEYWORDS
manpage, interface, TMML, HTML, nroff, conversion, markup
doctools 1.0 formatter(n)