Finding lines in String
I have a string that has a new line in it somewhere. I just want a way to get the indiviual lines out of it.
Thanks,
Dan
Use a StringTokenizer with \n as the token.
Kevin
Similar Messages
-
Find number of lines a string will wrap to?
I'd like to find the number of lines a string will wrap to, given a font and a width.
Is this possible?
ThanksYou could get the height of resulting string using sizeWithFont:constrainedToSize, and then divide it by the height of one line (computed using the saem function with jsut one letter).
-
Find out varchar2 string NULL columns and Empty columns
Hi dev's ,
my requiremnt is to find out the string columns Names of whose storing NULL values and EMPTY strings. for that i had written below code. it's getting some error.
SET ECHO OFF;
SET FEEDBACK OFF;
SET SERVEROUTPUT ON;
SET VERIFY OFF;
SET PAGES 0;
SET HEAD OFF;
spool D:\stringnull.csv
DECLARE
v_tab_indent NUMBER(5);
v_col_indent NUMBER(5);
v_val1 VARCHAR2(20);
v_val2 VARCHAR2(20);
v_query1 VARCHAR(500);
v_query2 VARCHAR(500);
BEGIN
--DBMS_OUTPUT.ENABLE(100000);
SELECT MAX(LENGTH(table_name))+1,MAX(LENGTH(column_name)) +1
INTO v_tab_indent,v_col_indent
FROM user_tab_columns
WHERE data_type='VARCHAR2';
FOR i IN
(SELECT table_name,
column_name
FROM user_tab_columns
WHERE data_type IN ('NVARCHAR2', 'CHAR', 'NCHAR', 'VARCHAR2')
ORDER BY table_name,
column_name
LOOP
v_query1:='SELECT NVL('||i.column_name||',0) AS VAL
FROM '||i.table_name||' where '||i.column_name||' IS NULL';
v_query2:='SELECT '||i.column_name||' AS VAL
FROM '||i.table_name||' where '||i.column_name||'=''''';
--dbms_output.put_line(v_query1);
-- dbms_output.put_line(v_query2);
EXECUTE immediate v_query1 INTO v_val1;
EXECUTE immediate v_query2 INTO v_val2;
dbms_output.put_line (rpad(i.table_name,v_tab_indent,' ')||','||rpad(i.column_name,v_col_indent,' ')||' ,'||v_val1||','||v_val2);
END LOOP;
END;
Spool OFF
Set echo on
Set feedback onERROR:
Error report:
ORA-01403: no data found
ORA-06512: at line 31
01403. 00000 - "no data found"
*Cause:
*Action:
set feedback onpls help me on this issue..
Thanks,Example:
SQL> DECLARE
2 v_val VARCHAR2(20);
3 v_query1 VARCHAR(32767);
4 BEGIN
5 FOR i IN (SELECT table_name, column_name FROM user_tab_columns
6 WHERE data_type IN ('NVARCHAR2', 'CHAR', 'NCHAR', 'VARCHAR2')
7 ORDER BY table_name, column_name
8 )
9 LOOP
10 v_query1 := 'SELECT count(*) FROM '||i.table_name||' where '||i.column_name||' IS NULL';
11 EXECUTE immediate v_query1 INTO v_val;
12 dbms_output.put_line(rpad(i.table_name,30,' ')||' : '||rpad(i.column_name,30,' ')||' : '||v_val);
13 END LOOP;
14 END;
15 /
CHILD_TAB : DESCRIPTION : 0
DEPT : DNAME : 0
DEPT : LOC : 0
EMP : ENAME : 0
EMP : JOB : 0
MYEMP_OLD : ENAME : 0
MYEMP_OLD : JOB : 0
MYNULLS : ENAME : 0
MYNULLS : JOB : 4
PARENT_TAB : DESCRIPTION : 0
T : CHAR_VALUE : 0
TABLE1 : COL1_DESC : 0
PL/SQL procedure successfully completed. -
Use REGEXP_INSTR to find a text string with space(s) in it
I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
(This is in a Function.)
Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
Syntax error on command line.
If ParmIn_Look_For is just 'black' or 'dog' it works fine.
Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
look for 'black dog' ??
Also: If I want to use the option of ignoring white space, is the last parm
'ix' 'i,x' or what ?
SELECT
REGEXP_INSTR(ParmIn_Search_This_String,
'('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
INTO Position_Found_In_String
FROM DUAL;
Thanks, WayneMaybe something like this ?
test@ORA10G>
test@ORA10G> with t as (
2 select 1 as num, 'this sentence has a black dog in it' as str from dual union all
3 select 2, 'this sentence does not' from dual union all
4 select 3, 'yet another dog that is black' from dual union all
5 select 4, 'yet another black dog' from dual union all
6 select 5, 'black dogs everywhere...' from dual union all
7 select 6, 'black dog running after me...' from dual union all
8 select 7, 'i saw a black dog' from dual)
9 --
10 select num, str
11 from t
12 where regexp_like(str,'black dog');
NUM STR
1 this sentence has a black dog in it
4 yet another black dog
5 black dogs everywhere...
6 black dog running after me...
7 i saw a black dog
5 rows selected.
test@ORA10G>
test@ORA10G>pratz
Also, 'x' ignores whitespace characters. Link to doc:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
Message was edited by:
pratz -
Unable to find line break between two lines in attachment file.
Dear all I will be very great full if someone help me out,
I am trying to send mail through SMTP server with an attachment of oracle report, but I am unable to find line break between two lines, when I down load the attachment from mail and open attach.txt file by double click on it. Next line starts right after previous line ends, it should starts with new line.
In order to send an attachment file, I am reading source file line by line and put MIME protocol’s attachment instance, contain of source file is being properly written into target file if I open that attachment on cmd prompt.
Following code may help you to understand the case.
Thanks in advance.
My code is as follows:-
create or replace procedure bec_file_test
v_subject varchar2, -- Subject of the email
v_body varchar2, -- Body of the email
v_from VARCHAR2 default 'XYZ.com', -- sender mail id
v_to varchar2 default 'XYZ.com', -- Field To of the email
v_cc varchar2 default 'XYZ.com' -- cc address
) is
-- variable to hold the smtp server connection
v_smtp_connection utl_smtp.connection;
-- variable to hold the smtp host name
v_smtp_host varchar2(100) default 'mail.bec-group.com';
-- variable to hold the smtp port
v_smtp_port number default 25;
-- composite of {CR}{LF} caridge return and line feed.
CRLF varchar2(2):=CHR(13)||CHR(10);
cursor pr_rec is
select requisition_no,line_no,release_no,a.contract,
a.project_id,substr(a.activity_seq,1,11)ACT_SEQ,
substr(a.part_no,1,12)PART_NO,
substr(a.description,1,32)DESCRIPTION,
substr(a.Bal_qty,1,8) BAL_QTY,
substr(a.unit_meas,1,5)UOM,
a.wanted_receipt_date WAN_REC_DT,
a.latest_order_date LAT_ORD_DT
from bec_pr_line_rep a
where a.Bal_qty>0 and a.header_state not in 'Closed'
and upper(a.state1) like 'RELEASED' and a.contract not in ('U1ENG','ULENG','U1FND','U2FND')
and a.buyer_code='70306'
order by a.part_no;
begin
declare
fHandle UTL_FILE.FILE_TYPE;
v_msg_line varchar2(2000);
-- v_buffer varchar2(20000);
--ALTER SYSTEM SET utl_file_dir = 'D:\Database\temp'
--COMMENT='Temporary change on Dec 14'
--SCOPE=SPFILE;
SELECT name, value
FROM gv$parameter
WHERE name = 'utl_file_dir';
--drop directory my_directory
--CREATE or replace DIRECTORY my_directory AS 'D:\database\temp';
--GRANT read,write ON DIRECTORY my_directory TO PUBLIC;
begin ---writing data into a file.
fHandle := UTL_FILE.FOPEN('MY_DIRECTORY', 'pending_pr_summry.txt', 'w');
UTL_FILE.put_line(fHandle, ' Pending PR to process (detail report)');
UTL_FILE.put_line(fHandle,TO_CHAR(SYSDATE,'MM-DD-YY HH:MI:SS AM'));
UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
UTL_FILE.put_line(fHandle, 'Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt' );
UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
for pr_temp in pr_rec loop
begin
v_msg_line:=to_char(rpad(pr_temp.requisition_no,12,' ')||'|'||
lpad(pr_temp.line_no,3,' ')||'|'||
lpad(pr_temp.release_no,3,' ')||'|'||
rpad(pr_temp.contract,7,' ')||'|'||
lpad(nvl(pr_temp.project_id,' '),7,' ')||'|'||
lpad(nvl(pr_temp.act_seq,' '),12,' ')||'|'||
lpad(pr_temp.part_no,12,' ')||'|'||
rpad(pr_temp.description,35,' ')||'|'||
lpad(pr_temp.bal_qty,10,' ')||'|'||
rpad(pr_temp.uom,6,' ')||'|'||
lpad(pr_temp.wan_rec_dt,14,' ')||'|'||
lpad(pr_temp.lat_ord_dt,14,' '));
UTL_FILE.put_line(fHandle,v_msg_line);
end;
end loop;
UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
UTL_FILE.put_line(fHandle, ' Regards : IFSAPP ( Application owner ) ');
UTL_FILE.FCLOSE(fHandle); ------------writing into file is successfuly done here!
--Reading of file starts here containt will be added in attchment file
fHandle :=UTL_FILE.FOPEN('MY_DIRECTORY','pending_pr_summry.txt','R' );
-- establish the connection to the smtp server
v_smtp_connection := utl_smtp.open_connection(v_smtp_host, v_smtp_port); /** OPEN CONNECTION ON THE SERVER **/
-- perform a handshake with the smtp server
utl_smtp.helo(v_smtp_connection, v_smtp_host); /** DO THE INITIAL HAND SHAKE **/
-- set the 'from' address of the message
utl_smtp.mail(v_smtp_connection, v_from);
-- add the recipient to the message
utl_smtp.rcpt(v_smtp_connection, v_to);
-- send the email
utl_smtp.open_data(v_smtp_connection);
v_msg_line:='Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || CRLF ||
'From: ' || v_from || CRLF ||
'Subject: ' || v_subject || CRLF ||
'To: ' || v_to || CRLF ||
'Cc: ' || v_cc || CRLF ||
'MIME-Version: 1.0'|| CRLF || -- Use MIME mail standard
'Content-Type: multipart/mixed;'||CRLF ||
' boundary="-----SECBOUND"'||CRLF||
CRLF ||'-------SECBOUND'|| CRLF ||
'Content-Type: text/plain;'|| CRLF ||
'Content-Transfer_Encoding: 7bit'|| CRLF ||
CRLF ||v_body|| CRLF; -- Message body
utl_smtp.write_data(v_smtp_connection,v_msg_line);
v_msg_line:='-------SECBOUND'|| CRLF ||
'Content-Type: application/octet-stream;'|| CRLF ||
'Content-Type: text/plain;'|| CRLF ||
'name="pending_pr_summry.txt"'|| CRLF ||
'Content-Transfer_Encoding: 8bit'|| CRLF ||
'Content-Disposition: attachment;'|| CRLF ||
' filename="pending_pr_summry.txt"'|| CRLF || CRLF; -- Content of attachment
utl_smtp.write_data(v_smtp_connection,v_msg_line);
-- check file is opened
IF utl_file.is_open(fHandle) THEN
-- loop lines in the file
LOOP
BEGIN -- Content of attachment
utl_file.get_line(fHandle,v_msg_line);
v_msg_line:=concat(v_msg_line,CRLF);
utl_smtp.write_data(v_smtp_connection,v_msg_line);
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
END LOOP;
END IF;
--end of attachment containt
utl_smtp.write_data(v_smtp_connection,v_msg_line);
UTL_FILE.FCLOSE(fHandle);
utl_smtp.close_data(v_smtp_connection);
utl_smtp.quit(v_smtp_connection);
exception
when utl_smtp.invalid_operation then
dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
when utl_smtp.transient_error then
dbms_output.put_line(' Temporary e-mail issue - try again');
when utl_smtp.permanent_error then
dbms_output.put_line(' Permanent Error Encountered.');
when others then
dbms_output.put_line('Exception: SQLCODE=' || SQLCODE || ' SQLERRM=' || SQLERRM);
RAISE;
end;
end bec_file_test;Pending PR to process (detail report)01-17-13 12:43:19 PM--------------------------------------------------------------------------------------------------------------------------------------------------Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt--------------------------------------------------------------------------------------------------------------------------------------------------MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade |500|kg |30-NOV-2012| 20-nov-2012MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012MAT/250606 | 2| |NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | |1|NMDCJ|6001|100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1|pkt | 25-DEC-2013| 14-dec-2013--------------------------------------------------------------------------------------------------------------------------------------------------
where as source file is like that:-
Pending PR to process (detail report)
01-17-13 12:43:19 PM
Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt
MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade | 5500|kg | 30-NOV-2012| 20-nov-2012
MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012
MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012
MAT/250606 | 2| 1|NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
MAT/250607 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012
MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012
MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012
MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012
MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012
MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012
MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012
MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1 |pkt | 25-DEC-2013| 14-dec-2013
Ignore alignment. It is well formatted in source file. -
How can I find out the strings that will be presented to the UI
Hi All,
I am working on a Swing based application (Swing based UI)
I am requested to do the following on the bytecode of that application:
I am supposed to find out what strings from within that bytecode will be presented to the UI and what will be used for an internal usage.
i have no way of running the application to verify that, i can only work on the static bytecode files.
hard question ha?
Thanks,
EItan.You would of course have to run it. Either via a VM or recreating a VM yourself.
As an example of that how would you figure out what string occurs in the following (pseudo) code?
String msg = (cnt > 1) ? ("files=" + cnt) : ("file=" + cnt);
if (cnt > 1) DisplayMessage(msg); -
Finding a Particular string in a Database in the most Optimized way
Hi All,
Below is the query to find a Particular String in the entire database tables,I have a Database of about 500 + tables and each contains many data's .In these tables i want to find a particular
string but didn't know the column name and table name.so i did as below,but for executing this it almost take 40 - 45 minutes.Is there any other way to Optimize this and make the Query execution Faster.I am copying the code below.Please comment
DECLARE
@search_string VARCHAR(100),
@table_name SYSNAME,
@table_id INT,
@column_name SYSNAME,
@sql_string VARCHAR(2000),
@TableCount INT,
@ColumnCount INT
SET @search_string = 'Developer'
DECLARE @Tables TABLE(Rownumber int identity(1,1),name nvarchar(370),id int)
DECLARE @Columns TABLE(Rownumber int identity(1,1),name nvarchar(370),id int)
INSERT INTO @Tables
SELECT name, object_id FROM sys.objects WHERE type = 'U'
SELECT @TableCount=COUNT(1) FROM @Tables
WHILE (@TableCount >0)
BEGIN
SELECT TOP(1)
@table_name=name
,@table_id=id
FROM @Tables ORDER BY Rownumber
INSERT INTO @Columns
SELECT name,object_id FROM sys.columns WHERE object_id = @table_id AND system_type_id IN (167, 175, 231, 239)
SELECT @ColumnCount=COUNT(1) FROM @Columns
WHILE (@ColumnCount >0)
BEGIN
SELECT TOP(1)
@column_name=name
FROM @Columns
WHERE id= @table_id
ORDER BY Rownumber
--SET @sql_string = 'IF EXISTS (SELECT 1 FROM ' + @table_name + ' WHERE [' + @column_name + '] LIKE ''%' + @search_string + '%'') PRINT ''' + @table_name + ', ' + @column_name + ''''
SET @sql_string = 'IF EXISTS (SELECT 1 FROM ' + @table_name + ' WHERE [' + @column_name + '] LIKE ''' + @search_string + '%'') select ''' + @table_name + ''' AS TableName , ''' + @column_name
+ ''' AS ColumnName , '''+ @search_string + ''' As SearchString'
--select (@sql_string);
--SET @sql_string = 'IF EXISTS (SELECT 1 FROM ' + @table_name + ' WHERE [' + @column_name + '] = ''' + @search_string + ''') select ''' + @table_name + ''' AS TableName , ''' + @column_name
+ ''' AS ColumnName , '''+ @search_string + ''' As SearchString'
EXECUTE(@sql_string)
SET @ColumnCount=@ColumnCount-1
DELETE FROM @Columns WHERE Name = @Column_Name
END
SET @TableCount=@TableCount-1
DELETE FROM @Tables WHERE Name= @Table_Name
ENDYou may also try the below :
http://gallery.technet.microsoft.com/c0c57332-8624-48c0-b4c3-5b31fe641c58 -
How to read a line of string?
Hi, I am very new to java programming. Can anyone show me a method of a simple way to read a line of characters into a string? I look over the internet but all seems awfully complicated like easyReader..etc which you have to import more other classes to make it to work. I just need it to be as simple as just to read a line into string.
Thank you...Hi, try this..
import java.io.*;
public class rt
public static void main(String[] args) throws IOException
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s = r.readLine();
System.out.println(s);
}hope this helps,
mfg
bbm1277 -
Standard function to find alphabet in string?
Is there a standard function to find alphabet in string?
For example, a variable define as char (10),
I need a function to find out if this variable contains alphabet.
Any standard function there?hiii
use following code
data: wa_str(100) type c.
data: wa_str1 type string.
data: wa_str2 type string.
data: wa_str3 type string.
data: len type i.
data: ofset type i.
wa_str = 'ABCD435hjK'.
len = strlen( wa_str ).
TRANSLATE wa_str TO UPPER CASE.
do.
if ofset = len.
exit.
endif.
if wa_str+ofset(1) co sy-abcde .
concatenate wa_str2 wa_str+ofset(1) into wa_str2.
else.
concatenate wa_str3 wa_str+ofset(1) into wa_str3.
endif.
ofset = ofset + 1.
enddo.
write:/ wa_str.
write:/ 'alphabatic char', 20 wa_str2.
here TRANSLATE wa_str TO UPPER CASE.
statement have added .i hope this will solve your problem.
regards
twinkal -
[ID5] Find line without paragraph break
Hello,
I want to Find lines containing a specific character style. But when that line is at the end of a paragraph, it also selects the paragraph break. Which GREP do I have to use to select the line without the break?
Regards, SjoerdAlmost forgot.
Neither Find Text nor Character Styles have anything to do with lines. "Find Text" never selects an entire 'line'. Not even GREP can do this. (The Online Help for GREP contains the word "line" a couple of times [*] but it shouldn't, except in the negated sense of "GREP cannot distinguish a separate line".)
[*] From memory. I tried to verify this, but the Online Help failed to appear. Again.
... Adding Insult to Injury: a pop-up offering this:
Would you like to add Community Help search on Adobe® InDesign™ to your browser's list of search engines?
Well, I don't think so. -
Extract/Scan for numbers from multiple lines of strings
Hi All,
I would like to extract numbers (the data) obtained from a serial acquisition which will be shown in multiple line of strings:
$#pressure 20
!@temperature 100
#voltage 1.2
I want to extract 20,100 and 1.2 so that I can do further data manipulation. Should I use match regular expression ? I could not get a proper regular expression to extract the numbers.
Thank you !
Solved!
Go to Solution.pokerprof wrote:
Hi there! Yes your method works, but it would be better if we can keep all the data into an array separated to pressure, temperature and voltage since we are continuously acquiring data.
Can we put it into array ?
Pressure Temperature Voltage
20 100 1.2
21 101 1.2
Whose method? You don't say who you are referring to (and if you don't quote at least part of a message, we don't know unless you tell us).
This is no time to keep your cards close to your chest, pokerprof .
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ -
Query to find lines shipped but not invoiced
Hi all,
Can anyone help in finding query to list all SO lines shipped but not invoiced.
regards,
ashokHi,
Can someone validate whether below query is right way to find lines shipped but not invoiced.
select line_id,invoice_interface_status_code,flow_status_code,fulfilled_quantity,shipped_quantity
from oe_order_lines_all
where shipped_quantity is not null --- means line is shipped
and invoice_interface_status_code != ‘YES’ -- means line is not invoiced -
Find Substring in String in Workflow
I'm trying to separate the content from GUID with metadata, but I can't find the Find Substring in String function in SharePoint Designer 2013 mentioned on
MSDN. Can anyone provide guidance? Thanks!Its a not a function. It is workflow action under Actions menu in your SPD 2013.
You can find that action under the Utility Actions and make sure you have selected All Actions as show in the image above.
Amit -
Hi All,
Can anyone help me in finding integers in string?
The scenerio is like I have to shortlist the strings which has numbers in it.
Consider this as a table with following data.
Ashwin
Bala12
Daniel
Mark67
Patty.
i have to get the answer as follows:
Bala12
Mark67
Thanks in advance.Hi,
Hope this code will help :)
create table my_test (some_val varchar2(100));
insert into my_test values ('1Abcd2');
insert into my_test values ('eFgh');
insert into my_test values ('IjklM');
insert into my_test values ('nOpq');
insert into my_test values ('r34st');
insert into my_test values ('uVw0');
insert into my_test values ('xyZ');
insert into my_test values ('!$-#_)(');
insert into my_test values ('1234567890');
commit;
select some_val
from my_test
where instr(some_val, '1') + instr(some_val, '2') + instr(some_val, '3') +
instr(some_val, '4') + instr(some_val, '5') + instr(some_val, '6') +
instr(some_val, '7') + instr(some_val, '8') + instr(some_val, '9') +
instr(some_val, '0') > 0;Good luck!
http://dba-star.blogspot.com -
How to find the last string value in dynamic object?
Hi All,
I am trying to find the last string value in dyanamic objects,Any one have solution for this.
Ex:
my data :12347-ebjdone-525-ecgfjf-25236-defdafgdeg
And i want to show the output is :defdafgdeg
Any ideas:
Thanks
SriniFor oracle try using oracle function.
e.g.
SELECT reverse(substr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),1,instr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),'-','1'))) from dual
Object definition might look like:
reverse(substr(reverse({ObjectName}),1,instr(reverse({ObjectsName}),'-','1')))
Regards,
Kuldeep
Edited by: Kuldeep Chitrakar on Feb 12, 2010 8:12 AM
Maybe you are looking for
-
How I fixed my broken iOS5 update/restore
Like many of you, my update to iOS5 caused me to lose all my content on both iPhone and iPad. I have lots of playlists and lots of app content in folders, and I've been trying various options while re-restoring my devices to get the content back. I'v
-
How to change color background
Hello Everybody, So i downloaded a tempelate off the internet and was wondering how i would change the background. I can not figure it out: html code; <strong></strong><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xht
-
Possible fix for embed tag problems in Safari 5.1 - Quicktime 7.6.6
I would be grateful if anyone can confirm the following problem and fix: A user of my website reported that embedded audio (mp3) files ceased playing after installing Safari 5.1 on OS X 10.6.8. I updated my test machine's Safari from 5.0 to 5.1 and c
-
Photoshop elements 10 - win 8.1 compatible?
Are Adobe Photoshop Elements 10 and Windows 8.1 compatible? Will it install correctly? Similar question: Is Adobe Acrobat Pro X compatible with windows 8.1?
-
System seems slower after new hard disk installation.
Dear all: After a recent hard disk crash that caused me to lose a lot of important professional and personal information I replaced my old defective hard disk (a Seagate Barracuda 1.0 TB internal SATA drive) with a new one (a Seagate Barracuda 1.5 TB