Sponsored Content
Full Discussion: Pattern Recognition - perl
Top Forums UNIX for Dummies Questions & Answers Pattern Recognition - perl Post 302090049 by scorreg on Friday 22nd of September 2006 06:57:54 AM
Old 09-22-2006
Pattern Recognition - perl

can someone help me with this..
cant for the life of me figure it out..
=~ m!^(/.*)/bin/xx!

specific query > What does m!^ do
> What does the ! at the end do..
 

4 More Discussions You Might Find Interesting

1. OS X (Apple)

Automatic device recognition in OSX

Can anyone point me to a resource (or answer my question) that will show me how to automatically run a script in OSX when a device is plugged in. The OS recognizes that the device is plugged in but how do I direct it to do something I want it to do. it seems that linux has udev but what would... (2 Replies)
Discussion started by: djkuzenko
2 Replies

2. Shell Programming and Scripting

perl:: search for tow pattern and replace the third pattern

Hi i want to search two pattern on same line and replace onther pattern.. INPut file aaaa bbbbb nnnnnn ttttt cccc bbbbb nnnnnn ppppp dddd ccccc nnnnnn ttttt ffff bbbbb oooooo ttttt now i want replace this matrix like.. i want search for "bbbbb","nnnnnn" and search and replace for... (4 Replies)
Discussion started by: nitindreamz
4 Replies

3. Shell Programming and Scripting

Perl pattern use

Hi , I have a file. I would like to split each line into 3 value. Ex: i/p line: 09.11.12 04:40: 561 users on GCSS_gcsspr3a. Expect output: $a=09.11.12 04:40 $b=561 $c=GCSS_gcsspr3a. Any idea plz Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

4. UNIX for Beginners Questions & Answers

Conditional pattern recognition with awk

Hi, I would need some help extracting the desired data from the following text: # Time_result: 1.056179 next_value: 0.000077 OTHER VALUE 445552341; SELECT row with values # IP = 192.168.1.15 # Time: 45 # Time_result: 100.15 next_value: 0.000077 OTHER VALUE 445552341; SELECT row with... (2 Replies)
Discussion started by: alex2005
2 Replies
NUMFMT_SET_PATTERN(3)							 1						     NUMFMT_SET_PATTERN(3)

NumberFormatter::setPattern - Set formatter pattern

	Object oriented style

SYNOPSIS
public bool NumberFormatter::setPattern (string $pattern) DESCRIPTION
Procedural style bool numfmt_set_pattern (NumberFormatter $fmt, string $pattern) Set the pattern used by the formatter. Can not be used on a rule-based formatter. PARAMETERS
o $fmt -NumberFormatter object. o $pattern - Pattern in syntax described in ICU DecimalFormat documentation. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 numfmt_set_pattern(3) example <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".numfmt_get_pattern($fmt)." "; echo numfmt_format($fmt, 1234567.891234567890000)." "; numfmt_set_pattern($fmt, "#0.# kg"); echo "Pattern: ".numfmt_get_pattern($fmt)." "; echo numfmt_format($fmt, 1234567.891234567890000)." "; ?> Example #2 OO example <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".$fmt->getPattern()." "; echo $fmt->format(1234567.891234567890000)." "; $fmt->setPattern("#0.# kg"); echo "Pattern: ".$fmt->getPattern()." "; echo $fmt->format(1234567.891234567890000)." "; ?> The above example will output: Pattern: #,##0.### 1.234.567,891 Pattern: #0.# kg 1234567,9 kg SEE ALSO
numfmt_get_error_code(3), numfmt_create(3), numfmt_get_pattern(3). PHP Documentation Group NUMFMT_SET_PATTERN(3)
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy