Using regex to create bbcode
hi all , i want to use regular expression to create bbcode.
ex : click here
regular expression match like this : \\.*\\[url\\]
i want to mark the "http://www.google.com" and "click here" as somethings (ex var1 and var2) to refer later , so i can make a replacement :
var2
is it able or i need to do it by hand ?
We solved a similar problem here: http://forum.java.sun.com/thread.jspa?messageID=9454486&tstart=0
Similar Messages
-
Using RegEx in Subscription Criteria
Using RegEx in Subscription Criteria
Hello
I want to use RegEx expression for filtering in my Subscription criteria, as follows:
Let say all the monitor I created start with same set of characters i.e.
"My Monitor"
Therefore I have several monitors called
My Monitor ABC
My Monitor 123
My Monitor XYZ
Therefore as part of the Subscription Criteria, under "with a specific name" I currently have
My Monitor%
The % meaning any one or more characters. That works find I receive notifications for alerts from all of the monitors with the above names.
Now what I want to do is keep this one subscription criteria but exclude notifications from say My Monitor 123. I still want to receive notifications from the other two monitors, therefore I was thinking this is a case for RegEx
First question is can I use RegEx in the criteria "with a specific name" field? I guess I am already doing the with the % however, I believe that is an SQL expression rather than a true RegEx expression?
The following blog has some detailed information
http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/ac0bf65f-f562-4f8c-b624-5fbe7ee2e795/
I am not clear if this would work in my case, for example it states the ^ character is used to denote NOT. Based on this I was thinking about changing the above
My Monitor%
To
My Monitor%[^123]
Will the above work, is it the correct syntax?
Any advise, most welcome
Thanks you all
ErnieHello Yury,
Thanks again for your help. Your solution worked, however with a slight difference as I discovered something else while testing.
Basically the example above
My Monitor [^1][^2][^3]%
Only takes into account the First character of the word/phrase for example, using the above filer, the results were
My Monitor ABC - pass
My Monitor 123 - no pass
My Monitor XYZ - pass
My Monitor 222 - pass
My Monitor XY3 - pass
I therefore had to add an _ as part of the filter meaning one character, therefore using the above example if I want to block
My Monitor 123
My filter would be as follows
My Monitor [^1][^_2][^__3]%
i.e. 1 being the first character, 2 being the second character by placing any single character in front of it using the _ then 3 being the third character by placing and two characters
in from of it by using two _ characters i.e. __
Thanks again, I could not of figured it out without your help
Ernie -
I used iphoto to create a photobook. I want to send this book to my aunt in california but it won't allow me to put in her address. I would like to know how
i can have this book sent directly to her home.FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
Phone: 800-275-2273 How to reach a live person: Press 0 four times
Hours of Operation: Mon-Fri: 9am-5pm ET
Email: [email protected]
How to report an issue with Your iTunes Store purchase
http://support.apple.com/kb/HT1933
iTunes Purchase Problems: How to Report a Problem to iTunes Support
http://tinyurl.com/7tscpa7
How to Get a Refund from the App Store
http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
Getting Refunds for your iTunes Store Purchases
http://www.labnol.org/software/itunes-app-store-refunds/13838/
Canceling a Digital Subscription
http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
Cheers, Tom -
I have just bought an Iphone 4s to compliment my Ipad Air, I want to use my Icloud address on both machines but cant get my iphone to accept my icloud address, it tells me it is already in use and to create a new one, which is not what I want.. How do I get the same email on both devices?
it tells me it is already in use
You will need to contact the previous owner of the iPhone in order to change the Apple ID. -
hi - how do i use iTunes to create ring tones using music in my library, hi - how do i use iTunes to create ring tones using music in my library
As stated... Google would be your Friend...
But you can have a look here as well...
Ringtones FAQs
http://support.apple.com/kb/HT1491
Create and Buy Ringtones
http://support.apple.com/kb/HT1693 -
I have been unable to use the "Advanced - Create iPad or Apple TV Version" to convert my movies for use with my iPad2. The movie will go through the conversion process, and is the correct length, but the video is a black and there is no sound? Has anyone found a similar problem? If so, what can I do to fix the problem? Before I used Handbrake to convert the videos which worked well, but now that is not working either .
No, there is no direct download link. Those are days of the past, I'm afraid. You may need to reinstall Mavericks.
Install or Reinstall Yosemite, Mavericks, Mountain Lion, or Lion from Scratch
Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
How to Clean Install OS X Yosemite
OS X Mavericks- Erase and reinstall OS X
OS X Mountain Lion- Erase and reinstall OS X
OS X Lion- Erase and reinstall Mac OS X
Note: You will need an active Internet connection. I suggest using Ethernet if possible
because it is three times faster than wireless. -
Can I use my newly created iCloud email address as my Apple ID?
Hey,
I know there have been loads of post regarding iCloud and account issues. I was wondering if it was possible to use my newly created iCLoud email address as my Apple ID and its primary address. I had a hotmail account as my Apple ID before signing up for iCloud. For me it's purely cosmetic and I want to retire that hotmail address.
Thanks
Peterthis has been really bugging me as well, i dont see why we cant do this.
if you create a new apple id you get the option to use a free icloud email as the apple id, but old users are stuck? -
I am new to Catalyst and looking for a way to create components in Catalyst to be compatible with an existing application created in SDK 3.5.
I am working on a project for a client to reskin an existing flex application done in SDK 3.5, but they are not ready to migrate yet to SDK 4.0.
I really want ot use Catalyst to create some custom components for the new style of this existing application, but the problem is the that the spark component architecture and the old version 3.5 are not compatible. Is there a way around this until they are ready to migrate to 4.0 or will I have to create my components in flash and bring them into flashbuilder with a swc this way instead? What would be the best approach for me at this point, please help?No. Flash Catalyst leverages the new component framework that was introduced in 4.0 (aka Spark). Flex 3.5 and earlier used a framework (referred to as MX or Halo). That framework is incompatible with Flash Catalyst.
Chris -
What is the advantage of using IB to create XIBs/Class Objects over coding?
Hi all,
I hoping someone can provide me some pros and cons as to when I should use IB to create XIBs and/or class objects as opposed to directly coding them.
For example, if I choose Apple's Template for creating a Navigation Based Application (cocoa touch), the project creates two NIB files - MainMenu and RootViewController.
However looking at one of demo apps SimpleDrillDown, it does not have a RootViewController XIB and instead creates it via code.
Another example from the same two apps is that the template generates a "Navigation Controller" class object in the Mainmenu.xib. SimpleDrillDown does not bother with this in the XIB, but uses code to generate the controller:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Create the navigation and view controllers
RootViewController *rootViewController = [[RootViewController alloc] init];
UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
self.navigationController = aNavigationController;
[aNavigationController release];
[rootViewController release];
// Configure and show the window
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
as opposed to the template which only needs this:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Configure and show the window
// Navigation Controller is defined in MainWindow.xib
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
So what are the advantages of each approach. Why does apple suggest one approach and yet all its demos use another.
Any thoughts, answers gratefully received.
TIA, Michael.You can do whatever you're comfortable with, but most of the best Cocoa programmers--the ones on the Mac, I mean--recommend putting everything you can into Interface Builder.
It's a little like the difference between writing a program to do a bunch of financial calculations and using a spreadsheet. Yeah, the program can do everything the spreadsheet can--and more besides--but you'll find it far easier to create, use and modify the spreadsheet.
Interface Builder takes away a lot of completely meaningless choices ("What order should I create the objects in? How should I name the variables? How should I create their frames? What order should I set the attributes in?"), leaving you with an interface optimized for creating and arranging objects, and allowing your code to focus on what you really do need to think about--your application's logic.
(By the way--part of the reason Apple's demos don't all use Interface Builder is that the very first SDK releases didn't have it. Back then, you had to create all your views programatically. Believe me, I have no wish to go back to setting autoresize masks manually. Now get off my lawn, whippersnapper.) -
Is it still possible to downgrade from ios 6 to ios 5.1.1 on my ipod touch 4th gen as of Sept.24? Also, if I use a backup created AFTER updating to ios 6, when I restore/downgrade to ios 5.1.1, does it become ios 6 again because of the version of ios 6 that I created the backup on?
There has never been a legit way to downgrade.
It will always restore to the latest available software. -
When I try to access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser not supported at this time". This happened to me while using my IPhone 5, a friend that uses an IPhone 6, and another friend that uses a Samsung Galaxy S5. I just need for my employees to be able to access, complete and submit work orders created in formscentral from their phones. I would like to use the data collection feature in formscentral but at this point any suggestions on how to accomplish this are welcomed. Thank you
Further info - I changed my security settings to allow apps from anywhere, and again tried to install. I again got an error message
that the update failed to install, and to contact Customer Support. -
Retrive PO number processing the bdc and use it to create a GR
I have created a bdc session that has one PO with multiple line items thru the session method .
I need to retrive the PO number in my program and use it to create a goods receipt .
From what i understand i will have to use call transaction for the first BDC so that i can retrive the number .
Am i correct in that and if yes how do you do that .
Thanks in advanceHi Anjali,
If you use call transaction there you have the option as getting the return parameter.
CALL TRANSACTION...[MESSAGES INTO itab] ... .
So this ITAB will contain the error messages if the CALL TRANSACTION fails or the PO number if it succeeds.
Regards,
Atish -
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed. I've re-used this script on 20+ client installs and it's always worked. The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error. It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING. This seems to imply that I have to hardcode the document in each script that I deploy for a customer. When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
Questions to the group
#1 Am I missing something here?
#2 Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
#3 Cisco didn’t document this in any way that I can find.
#4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ? It would seem this functionality has been killed in UCCX 8
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
(Background)
Create File Document Step
The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
The output of this step is a DOCUMENT to be used in the Create XML Document step
The string FILE_FullPathHolidayFiles references en_us\folderName\documentName.xml
The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
The create XML document input can only be a type DOCUMENT#1 Am I missing something here?
You are mixing two different issues together here.
The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
#2 Do you assume that you'll be able to load a script that
worked fine in UCCX 7 into UCCX 8 and that it should completely
function when you're doing everything according to the step reference
documentation.
Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
#3 Cisco didn’t document this in any way that I can find.
You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
#4 How can you use the Create XML Document step in a fashion that would
let you construct the path of the file and the filename previously in
the script so you could pass it to a subflow ? It would seem this functionality has been killed in UCCX 8
No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example: "DOC[" + myFilePath + "]" -
Urgent : Help needed in Using Hyperion to create a custom reports
Hi Gurus,
I am new to Bw my requirement is to use Hyperion to create a custom reports based on the functional specification. this report should be Created based on the data in the BW. I mean the data should come from BW.
Can any one give a detailed description about how to create these reports. If you have any documents on what is hyperion and the integration of hyperion to BW can you please forward them to [email protected]
Thank You,
Reddy.Not sure, But ultimately 'Flat file' may be the common interface for both the environments. So i think BW role may stop after crating the flat file in a specific format..
regards,
Hari -
Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs? If not, then what would be the best way to use these already created PDF's on an I Pad?
driddy61,
As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
Adobe Reader for iOS
Adobe Reader for Android
Adobe Reader Touch for Windows 8
In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers). Acrobat Pro and Standard are paid products.
Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example. You can also find other less expensive Windows tablets.
Tablets
However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
(a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
Example: Surface Pro 3
You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
(b) A Windows tablet with an ARM-based processor running Windows RT 8.1
Example: Surface 2
You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
In general, type (b) tablets are more affordable than type (a) tablets. However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
Processor: Intel
Operating system: Windows 8/8.1 or Windows 8/8.1 Pro, not RT
Hope this helps you choose the right device for your department. Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.
Maybe you are looking for
-
On iCal this year the date of shrove tuseday is showing on Tuesday 13 of February witch for a start is wrong coz it's a Thursday and wrong because its meant to be in march
-
i have problem with my i pad mini i tried to update my i pad then the download corrpted then the itones said that you most restore your device then i accept but its start extracting software above then veriving restore with i pad finaly its said th
-
Do I HAVE TO enter my 4 digit code every time I use my iPhone? Just updated to iOS 7
-
Macro for exporting data to a BPC Data File
Hi, My requirement is if in an Input Schedule, I can write a macro on a button click that takes the data from the input schedule cell range and exports it to a Data file at the BPC Data File path. Please note, while exporting, the data is to be overw
-
Business Partner for Issue Management
Hi! Does anyone have documentation on how to create a business partner in transaction BP and have it show up in the Processor list in Issue Management? Thanks, Lonny