How to combine multiple regex queries in a script?
Hello
is it possible to combine several queries regex in JavaScript? I export text from a database with custom labels and regex queries interpret the text AND character style replacements.
example of
Let's say my exported text is as follows
"I have a very large text of < tag_bold > < / tag_bold > that includes a large number of styles of different characters, such as < tag_bold >"BOLD"< / tag_bold >, < tag_italic > italic < / tag_italic >, < tag_bold >"BOLD"with certain < tag_bold_underline > underlined words < / tag_bold_underline > < / tag_bold >. ,
«to the words with different < tag_size-2 > text size < / tag_size-2 >»
The result I want is
"I have a very large text that includes a large number of styles of different characters, such as bold, italic,
"BOLD", with a few words that are underlined, or never words with different text size.
Note that all the tags open and close in the same paragraph and there's nested pairs of tags in some cases. If I run my requests (more than 20) of the outer pair the inner exception, i.e.:
< tag_bold >... < / tag_bold >
< tag_italic >... < / tag_italic >
< tag_size-2 >... < / tag_size-2 >
< tag_bold_underline >... < / tag_bold_underline >
Thanks in advance for your help
DPS
If your character style name and tag name so I think it's a complete solution for you
try code below:
myDoc var = app.activeDocument;
var charastyles = myDoc.characterStyles.everyItem () .name;
for (a = 1;
{
repl_charastyles (charastyles [a])
}
function repl_charastyles (charstyle)
{
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = '<' +="" charstyle="" +="" '="">' + '(.+?)' +="" charstyle="" +="" '="">';
app.changeGrepPreferences.changeTo = ' $1 ';
app.changeGrepPreferences.appliedCharacterStyle = charstyle;
app.activeDocument.changeGrep ();
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences = NothingEnum.nothing;
}
Tags: InDesign
Similar Questions
-
How to combine multiple PDFs into one file
How to combine multiple PDFs into one file
Hi Marketing Haskin,
The link mentioned by Mandeep requires you to have the Acrobat software.
However if you purchased export them to PDF / service Acrobat.com you can select 'Combine files' on the right side and then click on the button 'Select files' to select the files you want to combine.
-
How to combine several physical queries
Hi all
I have a large reports with more 70-80 columns in response. This isn't a report of Pivot. Now it generates 3 physical motion.
I need to merge this 3 requests in a single request. But it seems very difficult to implement.
Two points:
1 report generates 3 physical motion. All queries are queries GROUP BY, and each of them giving different count separately
2. If we find a way to combine. The result would be different answers report result (that's my assumption)
3. how the answer is combining the results of 3 queries and we show the result?
No entry or thought is appreciated top.
I'm totally stuck in there. Tried in different ways. But is there a solution for this that I'm not able to think?
Pls Help
Thanks in advance
Concerning
NathalieHello
In the answers--> tab check the sql issued. How the tool takes the query. Hope It will help you write a sql query. -
How to combine multiple PDFs into one document pfd
I opened nine PDF documents and now have a single document to nine tabs. How to save it as a PDF of the Master file?
Hi James Haynes,
Please see this doc KB help to combine PDF: handset of the single PDF files | Adobe Acrobat DC tutorials
Let us know if you need help.
Kind regards
Meenakshi
-
How to combine the two queries into a single
Hi gurus,
SQL > select * from v version $;
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.4.0 - Production 64-bit
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
AMT for Linux: release 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL >
I have following two queries. How can I convert these two queries into one with the same result?
1ST QUARTER
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
WHERE processid = 32
AND venddate is null
AND vid to (select vid from view_vid where type = 'PDX')
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 55)
AND (id, $vdate) in (select id, vidate from market_data where marketed_date is null)
AND id not in (select id from location)
Q2
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
WHERE processid = 20
AND venddate is null
AND vid to (select vid from view_vid where type = 'PBX')
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = 40)
AND (id, $vdate) in (select id, vidate from market_data where region_date is null)
AND id not in (select id from location)
I can the UNION queries these two, but is there some way I can write a single query that gives me the same result as above two queries?
Any help would be much appreciated
Thanks in advance
Sorry, it lack
SELECT id, $vdate, SupplierName, venddate, vid
THE SELLER
ProcessID WHERE in (32.20)
AND venddate is null
AND vid to (select vid from view_vid where type = case when processid = 32
then "PDX".
else "PBX".
end)
AND (id, $vdate) not in (select id, $vdate from vkfl_is where task_id = case when processid = 32
then 55
40 else
end)
AND (id, $vdate) in (select id, vidate from market_data cases where processid = 32)
then marketed_date
of other region_date
end to the null value
)
AND id not in (select id from location)
Concerning
Etbin
-
I thought it would be easy to google a solution for, but I have not found an answer.
If all goes well, there is an easy way to do
Some call it "consolidate", some call it 'compound clip"etc, but I would like to be able to collect 10 clips that I have in a sequence (on the same track) into one, so that I can apply effects, change sound in hearing etc. as if it were a single clip/track.
I tried fusion combining, grouping, nesting, etc, but nothing seems to give me what I need.
Can someone tell me please how to do the 10 clips "melt" into 1 clip on 1 track?
Thank you
OK found another way.
Select the clips you want to change only once at the hearing and nest.
Select the audio portion of this nested clip and go to replace and its Clip/Options/rendering.
Now, right click on the audio part and the clip to edit in Adobe Audition is highlighted.
-
How to combine multiple PDFs into one document?
A printer told me some time ago when I bought a few things, I can combine PDF files into one pdf. Can someone tell me how you do it, and do this with pdf that are the size of the different documents? I'm an invitation, program, cards and certificates for an awards ceremony, and wanted to know if I can combine all my pdf in a big pdf, even if they are all of different sizes.
Thanks for any help!
Even easier in Acrobat 9 (have nothing installed earlier to check): file > combine > merge files into a single PDF file...
You must have a full version of Acrobat, possibly Pro, player not only.
-
How to combine multiple copies of a form in a single pdf file?
Learn new things every day :-)
So, I am putting together a document "test plan". There are about 15 essays now, more to be added later.
I started to write the doc in Framemaker (as usual), with the idea that I would like to add new pages when necessary.
Well, after reading today, I decided to use InDesign instead to create a template for a simple test element.
Generated a PDF file, ran it by 'Prepared form' Acrobat and voila!
Wrote my first test, added a few buttons (links to related content), the drop-down lists, etc.
Then... I went to add a second test element goes into the Page, and then click Insert page thumbnails Panel in the Panel menu.
Chosen my shape model and received the message "no form fields that have the same name in the merged documents are now merged into one... you need to create a PDF portfolio...» »
So, did this, but it's a non-starter for me, because in some of my test posts, I want to pop open a user attached to specific pages guide. In a single PDF with 20 test points, the pdf file contains just the attachment. In a wallet containing 20 pdfs (one for each test element), there would be * several * accessories, as well as a really bloated file.
Then... Is there a way to merge multiple forms in a single pdf, somehow (I guess) automagically changing all the form field names to be unique?
Help would be deeply appreciated greatly.
I think I found the method in this post: Spawn page, PDF in Adobe X model, intervention #3.
-
How to combine multiple images in an image
Hi guys.
Total noob in-store photo here...
I am very expert on the use of paint (HAHA..) but using Photoshop 2014 is my first time and the only thing I don't know how to use's Magic Eraser...
Now I'm doing a website project and try to make some photos for each pages.
I'm doing a photo that has several images inside. (with a few designs... and look smooth.)
I have no idea how use Photoshop and I simply need to put pictures together to look nice and neat.
I joined two photo samples. It would be nice if you could teach me step by step how to make a photo like that (would be great if its even better ^^)
I appreciate your help and have a nice day.
If you want to learn these techniques there are a multitude of online tutorials that will help you out. Here are a few links that should point you in the right direction:
- Create collages, montages. Photoshop, Photoshop Elements
- Photoshop tutorial: How to make a montage in Adobe Photoshop - YouTube
All you have to do is search online and you should find most of what you want.
Thank you
-
How to combine multiple scans in jpeg format in a single file on an hp Deskjet 2050 printer.
I have a HP Deskjet 2050 connected to a PC running on Windows 7 64 - bit OS, it is necessary to download a single file containing a number of analyses of images and documents, the site only accepts the path to the file in jpeg format, but not in pdf format which is quite simple to do.
Any advice or ideas would be appreciated.
Hello
The JPEG file format is not compatible HP MultiPage, whatever or any other software used to create the file.
PDF or TIF files are supported by this feature, I'm afraid that you will not be able to perform this function in the form of JPEG file.
Kind regards
Shlomi
-
How to combine multiple pages scanned in a single file?
I scanned my CV pages and currently have registered individually, but I would put them all in a single file to use when I need to attach my cv current job applications.
Hi RaewynG
1. What is the file format of the backup files?
2 have you saved the files to JPEG?If you saved the files scanned in jpeg format, or in any particular image format, then you can open the files one at a time, and then copy and paste them into Microsoft word to create a single file. You can save the word in format doc or normal text file and use it accordingly.
I hope this helps.
-
How to combine these two queries:
Select K.ID, K.DOWN_STATUS, K.UP_STATUS,(K.DOWN_STATUS+K.UP_STATUS) TOT
from (select ID, SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
SUM (CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
of test_info where CONNECT_TIMESTAMP BETWEEN ' 2012-03-27 00:00:00 ' AND ' 2012-03-27 23:59:59 '
Group by ID) k
Select r.ID,(r.DOWN_STATUS+r.UP_STATUS) TOTAL, (r.DEVICE_ID |) '|' || Str (r.UP_STATUS) | ' ~ ' || r.DEVICE_ID + ", ' | Str (r.DOWN_STATUS)) as deviceinfo
from (select ID, device_id, SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS,
SUM (CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS
of test_info where CONNECT_TIMESTAMP BETWEEN ' 2012-03-27 00:00:00 ' AND ' 2012-03-27 23:59:59 '
Group by ID, device_id) rMaybe this?
select K.ID||'/'||K.DOWN_STATUS||'/'||K.UP_STATUS||'/'||(K.DOWN_STATUS+K.UP_STATUS) strout from (select ID,SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS, SUM(CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS from test_info where CONNECT_TIMESTAMP BETWEEN '2012-03-27 00:00:00' AND '2012-03-27 23:59:59' group by ID) k union all Select r.ID||'/'||(r.DOWN_STATUS+r.UP_STATUS)||'/'||(r.DEVICE_ID|| '|' ||STR(r.UP_STATUS)|| ' ~ ' ||r.DEVICE_ID+ ' , ' ||STR(r.DOWN_STATUS)) from (select ID,device_id ,SUM(CASE WHEN S_STATUS = 'DOWN' THEN 1 ELSE 0 END) DOWN_STATUS, SUM(CASE WHEN S_STATUS = 'UP' THEN 1 ELSE 0 END) UP_STATUS from test_info where CONNECT_TIMESTAMP BETWEEN '2012-03-27 00:00:00' AND '2012-03-27 23:59:59' group by ID,device_id) r;
-
How to create multiple Sources/Classes with a Script
I'm trying all my java sources or classes, enter a script so that I can pass them all to another server without having to compile each file individually. When I concatenate two files and you try to compile I get an ORA-29536: badly formed source error.
How can I get multiple definitions into a single file and compile all classes?
Thank you
GregoryGregory:
If you want to download several Java classes in a manuscript of the solution is .sql file, for example:
---------------------------------------------------------------------------------------------------------------------
definition of set?create or replace and compile the java source named 'my. Sleep' as
package my;
java.lang.Thread import;
public class {sleep
Public Shared Sub main (String [] args) survey java.lang.InterruptedException {}
If (args! = null & args.length > 0) {}
s int = Integer.parseInt(args[0]);
Thread.Sleep(s*1000);
} else
Thread.Sleep (1000);
}
}
/create or replace and compile the java source named 'my. Did app»
package my;
public class App {}
Public Shared Sub main (String [] args) survey java.lang.InterruptedException {}
System.out.println(args[0]);
}
}
/output
---------------------------------------------------------------------------------------------------------------------
Then the .sql file can be analyzed using the tools SQLDeveloper, JDeveloper, or SQLPlus.
HTH, Marcelo. -
How to combine two picturesinto one
I have 2 photos of people and I would like to combine them into a single image
Hello
PhotoShop (Adobe) and PhotoPlus (Serif) will allow that and both have communities of support
and support forums. Of course, these are commercial programs.Here are some free ways to help:
How to combine multiple Digital Photos into one
http://www.Dummies.com/how-to/content/how-to-combine-multiple-digital-photos-into-one.htmlCheck in the Forums of IrfanView.
IrfanView - free (also get Plug-ins)
http://www.IrfanView.com/IrfanView - Forums
http://IrfanView-Forum.de/Forum.phpThis research should help to:
Bing - Vista combine photos
http://www.Bing.com/search?q=Vista+combine+photos&QS=n&Form=QBLH&PQ=Vista+combine+photos&SC=0-0&SP=-1&SK=I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Combine multiple lines into one line (from two tables / result sets)
Hello experts,
I would like to know how to combine multiple lines/records in a single record. Here are the DDL and DML to tables:
create table test_table)
client_name varchar2 (50 char),
login_time timestamp (6).
logout_time timestamp (6).
auto_type varchar2 (10 char)
)
create table root_table)
navigation_time timestamp (6).
client_name varchar2 (50 char),
VARCHAR2 (50 char) nom_du_groupe
)
Insert into test_table
values ("John", TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');
Insert into test_table
values ('David', TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.) FF'), 'SIMPLE');
insert into root_table
values (TO_TIMESTAMP ('2013-12-05 17:04:01.512 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "invalid");
insert into root_table
values (TO_TIMESTAMP ('2013-12-05 17:14:22.333 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");
insert into root_table
values (TO_TIMESTAMP ('2013-12-05 17:27:31.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'John', "GROUP_1");
insert into root_table
values (TO_TIMESTAMP ('2013-12-05 06:33:01.308 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), "David", "invalid");
insert into root_table
values (TO_TIMESTAMP ('2013-12-05 06:45:01.112 ',' YYYY-MM-DD HH24:MI:SS.)) FF'), 'David', 'GROUP_5');
game results test_table
client_name login_time logout_time auto_type John 05/12/2013 5:04:01.512000 PM 05/12/2013 5:27:31.308000 PM SIMPLE David 05/12/2013 6:33:01.308000 AM 05/12/2013 6:45:01.112000 AM SIMPLE root_table result set
navigation_time client_name GroupName 05/12/2013 5:04:01.512000 PM John Not valid 05/12/2013 5:14:22.333000 PM John GROUP_1 05/12/2013 5:27:31.308000 PM John GROUP_1 05/12/2013 6:33:01.308000 AM David Not valid 05/12/2013 6:45:01.112000 AM David GROUP_5 And here is the SQL code I'm writing:
Select a.customer_name, a.login_time, a.logout_time, a.auto_type, Max (b.group_name)
from test_table a, b root_table
where a.customer_name = b.customer_name
Group of a.customer_name, a.login_time, a.logout_time, a.auto_type
As the 'invalid' value is greater than the value "GROUP_1" (based on the number of letter in English), the GroupName is returned as 'invalid '. I want to bring the GroupName based on the navigation_time column in the root_table so that it always returns a valid GroupName. Please help me.
Output current:
Client_name. Login_Time. Logout_Time | Auto_Type | GroupName
--------------------------------------------------------------------------------------------------------------------------------------------
John | 05/12/2013 5:04:01.512000 PM | 05/12/2013 5:27:31.308000 PM | SIMPLE | Not valid
David | 05/12/2013 6:33:01.308000 AM | 05/12/2013 6:45:01.112000 AM | SIMPLE | Not valid
Expected results:
Client_name. Login_Time. Logout_Time | Auto_Type | GroupName
--------------------------------------------------------------------------------------------------------------------------------------------
John | 05/12/2013 5:04:01.512000 PM | 05/12/2013 5:27:31.308000 PM | SIMPLE | GROUP_1
David | 05/12/2013 6:33:01.308000 AM | 05/12/2013 6:45:01.112000 AM | SIMPLE | GROUP_5
Thank you!
Adding INSERT statements, current and planned outputs.
This...
SELECT client_name
login_time,
logout_time,
auto_type,
GroupName
Of
(select a.customer_name,
a.login_time,
a.logout_time,
a.auto_type,
b.group_name,
ROW_NUMBER() over (PARTITION BY a.customer_name, a.login_time, a.logout_time, a.auto_type ORDER BY b.group_name) rn
from test_table a, b root_table
where a.customer_name = b.customer_name)
WHERE rn = 1;
OUTPUT:-
=========
David DECEMBER 5, 13 06.33.01.308000000 AM DECEMBER 5, 13 06.45.01.112000000 AM SIMPLE GROUP_5 John DECEMBER 5, 13 05.04.01.512000000 PM DECEMBER 5, 13 05.27.31.308000000 PM SIMPLE GROUP_1 Thank you
Ann
Maybe you are looking for
-
Firefox Sync does not login after update form 33.1.1 in 34.0.5
Mozilla Firefox for Windows 34.0.5. After update 33.1.1 Sync no longer works, does not automatically connect (re-connect to Sync is shown instead of the name of account synchronization). Reconnection to sync works only for the current session (restar
-
I have a sql 2005 with Service Pack 3 installed on a machine and on the second machine CA ARCserve backup software R16.5 installed and configured to use the SQL 2005 as its database, the backup and the restaurant's fines and thers one is work of migr
-
I CAN'T FIND MY PRINTER ALL - IN - ONE - PRINTER SERIES. It is SAID IT is THERE, BUT SAYS NOT SET AS DEFAULT. What does that mean?
-
When I open the "MICROSOFT SUPPORT RESULTS" ALL I could see was a red SCREEN dark with ACCEPT or DECLINE at the bottom of this Page. STRANGE colors on the SCREEN, LIGHT BLUES & ROSES, green around the borders. The computer CRASHES not, so I can't DO
-
HP Compaq presario product key of assistance requested
My laptop is a Compaq HP Presario of r3306us. The OS is XP Home edition. The laptop has been upgraded for XP Windows XP upgrade. My problem? The pc starts, and then prompt you for a product key. The product key on the pc does not work because of