How to Use Regex Options in CS2 [JS] - Reg.
Dear All,
Hai, I have doubt about the Regex options using in CS2 - Script.
Problem :
filename = "FTR0123a.indd";
k = Regex.match(filename,"(^FTR)(\d+)([A-Z*])\.(indd|indt))
if k.match = success
k1 = "."
k2 = $1 [ Stored in First Value only]
k3 = $2 [ Stored in Second Value only]
Here I got the answers from VB.NET using Regex options. But I can't use the Same condition in Javascript.
Please any one can give the solutions about the problem.
Thanks & Regards
T.R.Harihara SudhaN
The correct format is
filename = "FTR0123a.indd";
k = filename.match (/^(FTR)(\d+)([A-Za-z]*)\.(indd|indt)/);
This gives a five-element array, which you can see when you try this in the ESTK.
Peter
Similar Messages
-
How to use CSS option in Answers
Hi,
I have around 5 Dashboards, which includes close to 20 Reports.
I would like to learn how I can format column name (like Font, Size) and data appearance in each report.
Currently am doing it manually, one column by one column. I would like to know how to use CSS option.
Regards,
JitendraThe easiest way is to do this is to create a new "skin" for your dashboards or either modify the default. The location of the default folder is /res/s_oracle10/b_mozilla/views.css. The view.css file is where you can go and customize the classes. For example, if you want to customize the Pivot Table Row Header, search for .PTRH and then you can alter the existing formatting or add additional specifications.
-
How to use select options whitout ranges ie like parameter
how to use select options whitout ranges ie like parameter and pls send me the code on that
thanks
raja.hi,
SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b>
eg: code
<b>SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b></b>
data: itab type table of kna1 with header line.
select * from kna1 into table itab where kunnr IN s_kunnr.
rgds
Anver -
Hi, I'm Hannah. I'm using a Mac. Can you show me how to use the options with F10, F11, F12 for turning the sound up, or down or mute? Thank you very much
Normally simply pressing them should do what you want, F10 to mute; F11 to decrease volume; F12 to increase volume. However, it's possible that you have a box ticked in Keyboard preferences which modifies the behaviour of the keys, requiring you to also hold down the Fn key (bottom left key on the keyboard) to enable the function.
Check System Preferences>Keyboard to makes sure the box indicated in the image isn't ticked. -
How will use Select-Options in Read table Concept.
Hi All,
How will use Select-Options in Read table. For example,
Select-Options : test for bseg-prctr.
Select * from bseg into table ITAB.
Read table ITAB with key prctr in test.
Last line is showing error. If any way to read ITAB as conditions given per select options.
Thankx Advance,,,HI,
you cannot use " IN " with read statement , read statement is used as:
READ TABLE it_collect ASSIGNING <fs_collect>
WITH KEY rbpl = <fs_wkdet>-arbpl
ufnr = <fs_wkdet>-aufnr.
anyways you can use loop at statement before read to use " into " statement as:
LOOP AT it_master INTO l_master
WHERE werks = l_werks
hope it will help you
regards
rahul
Edited by: RAHUL SHARMA on Dec 30, 2008 9:14 AM -
How to use -open option at command prompt
Can someone update me with how to use -open option while launching javaws from command prompt. Sun documnetation (http://java.sun.com/javase/6/docs/technotes/tools/share/javaws.html#runoptions) is not very clear.
I am trying to do something like this
javaws -open prop1 firstName prop2 lastName http://myapp.jnlp
However the above does not work. It says incorrect argument firstName.
Cheers
AmitThe syntax as present in JWS documentation
javaws [run-options] <jnlp>
[run-options] Command-line run-options. run-options may be in any order. For a discussion of the various run-options, see RUN-OPTIONS below.
<jnlp> This can be either the path of, or the Uniform Resource Locater (URL) of the JNLP (Java Network Launching Protocol) file. -
Hi Experts,
Any one know how to use or what is the purpose of "custom" option present under the data access tab in Excel workbook file format of Data Services
Thanks in Advance,
Rajesh.Rajesh, what is the Custom Protocol you are trying to use? It should be something like PSFTP, etc.,
Cheers
Ganesh Sampath -
How to use select-options in the function module of import parameter ?
Hi ...
I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
Same thing is working after implementing in a program .
so now it is working for fetching a single company code details .
My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
Program :
REPORT ZTEST.
TABLES : T001 , ZBAPI_STR .
TYPES : BEGIN OF TY_ITEM .
INCLUDE STRUCTURE ZBAPI_STR .
TYPES : END OF TY_ITEM .
DATA :WA_ITEM TYPE TY_ITEM ,
ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
call function 'ZBAPI_FMT001'
exporting
bukrs = BUKRS
IMPORTING
RETURN =
tables
itemtab = ITEM
IF ITEM IS NOT INITIAL .
LOOP AT ITEM INTO WA_ITEM .
WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
ENDLOOP.
ENDIF.
FUNCTION MODULE :
FUNCTION ZBAPI_FMT001.
""Local Interface:
*" IMPORTING
*" VALUE(BUKRS) TYPE EFG_TAB_RANGES
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ITEMTAB STRUCTURE ZBAPI_STR
SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
ENDFUNCTION.
Regards
Deepa.I have given a similiar example which i did
Declare a
Table type:Z_TT_PONUM
Short text : Select options PO Number
in SE11 tcode with row type eg: Z_ST_PONUM
create a structure (this will be the row type)
Structure Z_ST_PONUM
Short text Select Options Field PO number
Compenent Compent type
SIGN BAPISIGN Inclusion/exclusion criterion SIGN for range tables
OPTION BAPIOPTION Selection operator OPTION for range tables
LOW EBELN Purchasing Document Number
HIGH EBELN Purchasing Document Number
In the function module import
give as
I_PO_NUM TYPE Z_TT_PONUM opt pass value Select options PO Number
Hope this is exactly what you want to know.
So you create a structure simliar to mine but the low an high whould be your component
then a table type and then include that in the BAPI.
Then pass your select-option value to this BAPI when you call this BAPI in the program -
How to use Barcode option in adobe forms!!!!!!!
Hi Expert,
I need some information.
Please tell me how to use barcode in adobe forms.
Is there any standard program?
Please help me.
BR
Srinivasareddy
Moderator Message: Search for available information first.
Edited by: kishan P on Nov 29, 2010 11:29 AMHow about the online help in the builder?
Regards
Grant Ronald
Forms Product Management -
How to use selction option in reporting
hi experts,
my source file contains data like this
ID QUANTITY YEAR
101 25KG 2005
102 20KG 2005
103 28KG 2005
101 32KG 2006
102 22KG 2006
103 20KG 2006
101 24KG 2007
102 26KG 2007
103 25KG 2007
here in ID column,every ID has repeated in 3 times i.e.. one for 2005,one for 2006 and one for 2007.
i want to change this data by using selection option like bellow mentioned
ID 2005 2006 2007
101 25KG 32KG 24KG
102 20 KG 22 KG 26KG
103 28KG 20KG 25KG
is it possible to change like this,if yes pl help to do this by giving step by step procedure.
thanks & regards
venkatI am assuming ID and year are characteristics
and the quanity is a key figure
Place the ID in the row and
Next place the Year in the column.
Now place the Quantity right below the year
and you should get the desired result
Good luck
Raj -
How to use "Select options" in Webdynpro Java ?
HI experts ,
I want know if can be implemented "select options" like the ones used in R3 - ABAP in a webdynpro Java.
And in case of being possible, how to implemented using Adaptive RFC or BAPI with a R3 backend system?
Our Portal is EP6.0 SP18 ,J2EE 6.40 .
Thanks & Regards,
Jianguo ChenHi Jianguo,
check these links:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm</a>
You may use 2 EVS to simulate your select option.
Regards,
Gianluca Barile -
How to use parameter option in smartform program line.
HI all,
how can i give parameter for matnr directly in smartform program line, it wont take gives a dump
i don wanna create a separate driver program for that.
Error in the ABAP Application Program
The current ABAP program "/1BCDWB/SF00000001============FT" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "/1BCDWB/SAPLSF00000001 " in
include "/1BCDWB/LSF00000001F01 " in
line 539:
"You can only use "PARAMETERS" for programs other than type 1 between B"
"EGIN/END OF SCREEN."
The include has been created and last changed by:
Created by: "SAPUSER "
Last changed by: "SAPUSER "
how can i solved this.
Kavinath B.Hi,
You can not code
SELECTION-SCREEN BEGIN OF BLOCK.
SELECT-OPTIONS selcrit FOR (name).
SELECTION-SCREEN END OF BLOCK.
like this in smartform program line it wont allow
all you have to do is create a driver program
for smartform create a selection screen and call smartform by
n pass variables or internal tables.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname =
* VARIANT = ' '
* DIRECT_CALL = ' '
* IMPORTING
* FM_NAME =
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
I hope it will help u
Ketan.P -
How to use regex to identify a "/".
Hi
I am trying to use the regular expressions package to distinguish between an XML start tag and an XML end tag (i.e. <tag> and </tag>). I am trying to do this by using the pretty much the following:
Pattern myPattern = Pattern.compile("/");
Matcher myMatcher = myPattern.matcher(myFile);
I know my java syntax is correct because it finds other regexes perfectly but for some reason it cant find a single slash.
if i replace occurences of the single slash in the myFile with double slashes the pattern matcher picks them up using the above pattern.
Why is this?
PS I know there are loads of APIs out there for playing with xml and i could use them but i was just messing around trying to do it myself. My question is about why the regex doesnt work
Many thanksI guess this depends on the conent you're using in your file, and how you're using the matcher afterwards. For example, I just did this quick test?
import java.util.regex.*;
public class Test {
public static void main(String [] args) {
Pattern pattern = Pattern.compile("/");
String sample = "/";
Matcher matcher = pattern.matcher(sample);
System.out.println(matcher.matches());
}And the output was true. However, if I change sample to have more than just a / in it, it doesn't work anymore. I would have to change the pattern to ".\*/.\*".
- Adam
Edited by: guitar_man_F on Sep 14, 2007 11:13 AM -
How to use adadmin options to recompile all forms, packages and libraries.
Dear gurus
How we can use adadmin, and which options to recompile all forms, packages and libraries.??
thanks in advance.
cheersDear Hsawwan
is the following correct......
=========================
Enter your choice [6] : 1
Generate Applications Files
1. Generate message files
2. Generate form files
3. Generate report files
4. Generate product JAR files
5. Return to Main Menu
Enter your choice [5] : 2
AD utilities can support a maximum of 999 workers. Your
current database configuration supports a maximum of 18 workers.
Oracle recommends that you use between 64 and 128 workers.
Enter the number of workers [64] :
Please enter a number between 1 and 18.
Enter the number of workers [64] : 5
Your current character set is "AL32UTF8".
Do you want to generate Oracle Forms objects
using this character set [Yes] ?
Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ?
Do you want to regenerate Oracle Forms menu files [Yes] ?
Do you want to regenerate Oracle Forms executable files [Yes] ?
Enter list of products ('all' for all products) [all] :
=========== -
How to use search option using TREX.
How can i have a search option in the portal page where in a user types for some keyword and the results are displayed accordingly.
Thanks
Shreya....Shreya,
http://help.sap.com/saphelp_erp2005/helpdata/en/72/b595166625664fbdc110d54639f27b/frameset.htm
Maybe that link will help.
Regards,
Keith
Maybe you are looking for
-
How do I remove a playlist from my iPod in iTunes
I have my iPod Nano configured in iTunes and I have about 10 playlists that automatically sync when I connect the iPod. I'm running out of space so I want to delete a few playlist from those that sync to the iPod. I used drag and drop to put them o
-
Hi, I have appended a custom search help to std collective search help C_SAKNR, which is assigned to data element SAKNR. The reason to append custom search help is when the user presses F4 on G/L account field on ME51N transaction, there should be an
-
How to identify various objects used in code
Hi All, Can anyone tell me how can I list down various objects used in a program. For example in a report program if I am calling a function module, calling an include program, implementing a class and so on. Now I want to list down the objects used
-
Adobe Reader X self terminates in XP SP3
I have installed Reader X on a Windows XP SP3 32-bit system but whenever I try to run it the program terminates itself straight away right after the splash screen. I do not have the same problem when using it on a Windows 7 64-bit system though. Can
-
Older files unsearchable in Finder
Hello, I've looked around and can't find a preexisting topic that addresses my question, sorry if a discussion already exists on this. I got a new MacBook in December 08 and used the Migration Assistant to copy over everything from my previous MacBoo