Parses a specific string in ActiveRichTextField using StringPattern
Hi, I am a newbie in the development of BLB and exploring the ActiveRIchTextFIeld currently. I know that it detects channels such as phone number and e-mail by himself and inserts a menu item in the context Menu for. However, I am trying to make the field to detect a specific string as a postcode to the address or any other string indicating the address. I've read that this can be done using the StringPattern or PatternRepository.However m unable to understand how it can be achieved. Can someone please give me an excerpt of reference for the same thing? Thanks in advance...
Welcome.
Ko is always a good place to look for things like BLAH:
How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
Article number: DB-00525
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...
Tags: BlackBerry Developers
Similar Questions
-
Search for files which file name contains a specific string
Hello
I'm lookng for a way to find all the files in a directory, what part of the file name contains a specific string.
for example:
String = Hello
files;
-1hello2.txt
-22he45.txt
-gehello42353.txt...
The result should be an index or the full file name that matches. In the example, I found the indexes 0, 2, or 1hello2.txt and gehello42353.txt.
In fact, I have a list of files with the "recursive list.vi".
Any suggestions are welcome.
Thank you for your help
Yves
You can use the list of folder - function with * Hello *-model.
From there on, you get the names of files that include this specific model.
If already you have the list of files:
-use the chain of digitization of the chips in a loop for and if token index! = - 1, then you can add this index in array to the list.
I m sure there are better ways to do it, but nothing that I can get to quickly.
-
find if get date and time string function is used in my labview vi
Hi, I am trying to understand a labview project and wanted to determine if the DATE STRING function / hour GET is used in VI. This VI has many void too / vi... I know that we can find all instances of all indicator etc... but I can also do something like this to find all the functions of DATE STRING / hour GET used?
Hi Claudia AG
Open the block diagram of the main vi, press 'Ctrl + F' and select 'object '. See image below
-
How to create the string of JSON using QVariantMap array?
Hi all
How to create sub string of Json using QVariantMap array?
{ "Test1": [ { "dataTest1": "0000", "dataTest2": 1412, "dataTest3": "", "dataTest4": "0000", } ], "Test2": { "data1": 1412008, "data2": "0000", "data3": "A", "data4": "0000", } }
Waiting for your answer please reply me as soon as possible.
JSON array is QVariantList
JSON object is QVariantMap
then create a QVariantLsit and insert your QVariantMaps
-
Windows 7 can search for files containing a specific string that includes punctuation
I have a documentation for a programming language which is in the form of html on my machine and search for files that contain the string "${1}".
However if I type that in the search box windows instead seeks any file containing the string '1' in its content or its file name or a folder (which gives me 10240 results!)
Research I try it is possible with a different syntax (escape the $ and brackets to indicate that they are part of the search maybe string)?
Thank you
MOG
Hi Mog,
Because the question you posted is related to search for files containing a specific string, it would be better suited in the MSDN forum. Please post your question in the following MSDN forum:
http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threads
-
Best way to parse a delimited string
Hello-
I am trying to understand better, more concise way to parse this string:
I played a bit with using Substr and Instr, but the code seems to have a little messy, so I thought I would check to see if there was an easier way.'FNAME=JANE|L_NAME=DOE|ACTIVE_PLAN_CODE=Y0|BEN_MOD_ID=4695'
Are the values that I need to analyze
Thank you!Jane, Doe, YO, 4695.
ChristineMaybe like this
SQL> with dat as ( Select 'FNAME=JANE|L_NAME=DOE|ACTIVE_PLAN_CODE=Y0|BEN_MOD_ID=4695' col from dual ) select InitCap(regexp_substr(col,'[^=|]+',1,2))||',' col1 , InitCap(regexp_substr(col,'[^=|]+',1,4))||',' col2 , regexp_substr(col,'[^=|]+',1,6)||',' col3 , regexp_substr(col,'[^=|]+',1,8)||'.' col4 from dat / COL1 COL2 COL COL4 ----- ---- --- ----- Jane, Doe, Y0, 4695.
SS
-
Hi people,
I read a binary string to a Sonic anemometer of campbell. It is transmitted via RS 232 9600 baud. The problem is the following:
I read the entry stamp from time to time (all 300 ms). The outpit of the sonic is much faster (every 30ms). There is only a certain amount of stored bytes I've read. To get a correct value, I find 2-byte endpoint AA HEX and HEX 55. A complete sentence consists of 12 bytes 10 bytes each endpoint U8 values and 2 bytes. How to search for them?
My idea was to see how many bytes, I read, convert each in a binary table and then show them as boolean table all together (see annex VI). It works but I can not find the expression just binary AA Hex and 55. And it is as interesting as the first column (bit 0) and last (bit 7) always remain 'false. ' I'm doing something wrong?
So it would have been more useful if you would have posted the example that has been read data. Because I didn't have everything I've done a few. The attached VI will look for places where the hexadecimal byte AA then 55. It then divides the sections of data using this information. I wrote it two ways because I was typing this I thought of a better way that uses string functions to break the data into a data table.
-
Can Unflatten string could be used to play the waveform given .dat file
Hi, refer to these two threads
http://forums.NI.com/T5/LabVIEW/can-LabVIEW-read-dat-file/TD-p/2243080
http://forums.NI.com/T5/LabVIEW/2-complement-hex-convert/TD-p/2245980
I tried to read the file Dat using string Unflatten and Got this error.
Can someone tell me how to do?
-
Specific string matching (Hex 2E2E)
I have a file that I have to deal with, a beautiful simple function to create.
Read file, find the part of the file with the string of some data in it, create the output of data in expanded format table and save the spreadsheet file (for example csv will do)
This is the problem, the data is in the format:
PS1 #PS0 #, #PS3 #c3... 31, c34 #... 126
(I can remove the # and no probs.) The bit that kills me, is that I need to extend the range of c3 to c31. We'll never find a match pattern '.. 'because'. ' is a special character in match pattern and matching of regular expressions - thank you NOR.)
I can kind to locate using the string split function, but it does not I want very efficient, if someone at - there ideas for a better way around this problem?
See you soon
James
Hi James,
Try this:
-
Darken a specific string Match (LogFilter)
I have a string of specific match I need black out for a time determined on a daily basis. We currently have one LogFilter officer set up for that particular log with a match string list that we monitor. There is a single string that I need blackened every morning between 04:00 and 07:45. The only way I think I can do it is if I have LogFilter a second officer and apply only the one corresponding to the string, then I can this particular agent of LogFilter black. Can anyone confirm if it would work? Would I meet problems because we follow the same newspaper on two different officers of LogFilter?
You can control the same log file with several agents. Each agent will retain its own pointer to the log file of the previous analysis of the new entries in the log file.
-
converting string to XML using Xquery transformation in OSB node
How to convert the string to XML node elementusing built in function by using Xquery transformation in OSB?
Discover this - http://www.javamonamour.org/2011/06/fn-beainlinedxml.html
If in SOA (BPEL & mediator), you can use oraext:parseXML.
You must analyze in depth where to implement your requirement as some good practices advise to implement logic more complex in SOA and let OSB only connect to endpoints of services.
Hope this helps,
A.
-
Get specific information from XML using PLSQL
Hi friends,
XML entry
' <? XML version = "1.0" encoding = "UTF-8"? >
< major >
< minor >
< > 12345 line_id < / line_id >
< service_Line >
< > 1111 line_id < / line_id >
< product_id 56789 > < / product_id >
< / service_Line >
< service_Line >
< > 22222 line_id < / line_id >
< / service_Line >
< service_Line >
< > 3333 line_id < / line_id >
< > 23456 product_id < / product_id >
< > 999999 product_id < / product_id >
< / service_Line >
< service_Line >
< > 4444 line_id < / line_id >
< / service_Line >
< / minor >
< service_Line >
< > 5555 line_id < / line_id >
< > 666666 product_id < / product_id >
< > 121212 product_id < / product_id >
< / service_Line >
< service_Line >
< > 5555 line_id < / line_id >
< / service_Line >
< / major >
`
from the above XML code
I want the line_id and the Product_id of the tag service_line and ignore the line_id in the tag of service_line that does not product_id
so I need the information below
Service_line
product_id
1111
56789
3333
23456
3333
999999
5555
666666
5555
121212
Or as
Service line - 1111
Product_id - 56789
Service - line 3333
Product_id -23456
Product_id - 999999
Service - line 5555
Product_id -666666
Product_id - 121212'
Oracle version:
PL/SQL Release 11.2.0.3.0 - Production
Thanks in advance
Come on... I have already answered here: Re: Re: parsing XML and get the required data only PLSQL using
Please stay focused
select x.* from xmltable( xmlnamespaces(default 'urn:xyz:ccw:config:common:data') , 'for $i in //serviceLine , $j in $i/coveredProduct return element r { $i/lineId , $j/childProductLineId }' passing v_xml_response columns seq_id for ordinality , child_product_line_id number path 'childProductLineId' , service_line_id number path 'lineId' ) x ;
-
Problem with convert the string to date using DateTimeStringConverter
Hello
I would like convert string date (JJ/MM/AAAA) - it is useful to compare dates in TableColumns.
so I use DateTimeStringConverter (the string "01/11/2014" is a value of date picker)
DateTimeStringConverter format = new DateTimeStringConverter (Locale.FRANCE,
"dd/MM/YYYY");
Date d1 = format.fromString("01/11/2014");
D1. ToString()
"I do not get the right date, but that date =" Mon Dec 30 00:00:00 THIS 2013!
I don't understand what the problem is (which in fact should not be a problem)?
Any ideas?
Thanks in advance
Fabrice
You have an error in the spec use format ' dd/MM/YYYY' instead of 'dd/MM/YYYY '.
DateTimeStringConverter f = new DateTimeStringConverter(Locale.FRANCE, "dd/MM/yyyy"); Date d1 = f.fromString("01/11/2014"); System.out.println(d1.toString()); // --> Sat Nov 01 00:00:00 CET 2014
If you do not need long, I would use DateStringConverter
-
Check the string value when using xdoxslt
Hello
I'm new to the BEEP and will have questions in writing this simple code for a model RTF. In plain language, that's what I want to do:
If (instr(FirstName,'concern',0) > 0 and instr(LastName,'concern',0) > 0 and instr(MiddleName,'concern',0) > 0) then the VNAME variable value "
on the other
If (instr(LastName,'1-',0) > 0), then set VNAME variable FirstName
on the other
the value of VNAME variable FirstName + "" + name
Finally... show the VNAME variable
===========
I wrote it, but it doesn't work:
declared variable... Initialize it to x.
<? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'x')? >
String value of control-> - error.
<? If: (xdoxslt:Instr (lower(coFirstName|| coMiddleName || coLastName), "abuses", 0) > 0)? >
<? xdoxslt:set_variable($_XDOCTX,_'v_RTPMName',_'')? >
<? end if? >
write the variable
<? xdoxslt:get_variable($_XDOCTX,_'v_RTPMName')? >
Thanks for the help!
For a quick overview,.
InStr is belong to the xdofx family, must be used in this way instead of xdoxslt:Instr()
For example: If condition 1 0 otherwise true back
0 then 1 or 0 end if? >
-
Hello
No problem with the LR 6.1, but now (LR6.4), it seems impossible to rename my files with a specific format (yyyy-dd-hhmmss and a suffix) importing memory cards. LR imports only files with names of origin. And I have a lot of files to rename...
I hope that someone knows what's going on.
Jean
Jean,
We found a similar question which is being implemented. If you shoot images at once in the first and jpg format and then import them using the option of renaming, the question is in place.
Could you please check if you use the option "make a second copy? If so, please it deselect. It should solve the problem.
The issue is addressed in Lightroom.
Thank you
Sunil
Maybe you are looking for
-
Battery drains very quickly on Satellite A300D-17F
Hi brothers! I install windows 7 on my laptop. It is so useful and quick, but a problem today.On the battery. A warning as this "changing your battery can useful."He performs very fast power.So, what should I do? (A300D-17F and used only one year)
-
Windos Live Mail error code: 80072efe
Try to send an e-mail, and I get this message Windows Live Mail error ID:80072EFEThe windows are Vista, upgrade to the latest updates without any error
-
Reference Dell 926 printer will not print after installing Windows 7
After the upgrade to Windows 7 my 926 printer will not print. I followed the suggestions found here (unplug the printer on the wall, remove the brick, low load patch R166248 to delete the printer, the latest driver to load, R146832 dated 26/01/07, re
-
BlackBerry Smartphones how decrypt data encrypted on my phone memory and my SD card
I have encrypted my data from the device and SD card. The files that I saved on the blackberry are converted to .rem exptension. Now, I removed the encryption on stil devcie .but files are not converted to the original state. Encrypted files cannot b
-
Hi all Have recently upgraded via the updater for Facebook v1.8.0.49 appworld In the previous version when a notification came through Facebook it would make appear an icon on the home screen of facebook and NOT send an email to the email address on