Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Java to remove non-alpha characters
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Carrie
Past 24 Hours:
1
Prev. 24 Hours:
2
Overall:
5298
People Online:
Visitors:
355
Members:
0
Total:
355
Online Now:
New Topics
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
Lawson Portal
Lawson ESS customization
6/23/2025 10:28 AM
I want to add new links and customize the ESS (sel
S3 Security
Securing forms and programs that use Company Group
6/17/2025 5:41 PM
Is there a way to write a rule, that looks up a co
S3 Customization/Development
Self-Serve Customization and Modification of home page
6/17/2025 3:40 PM
Hi, I want to add new links and customize the E
S3 Customization/Development
Data / List view on Lawson Portal
5/21/2025 2:37 AM
Client is on S3 V10. All delivered and custom form
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3290
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Java to remove non-alpha characters
Please
login
to post a reply.
2 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
MC
Advanced Member
Posts: 41
2/13/2014 2:03 PM
I need a Java routine that I can put in to my PF to remove the non a-z charaters (upper and lower) from the employee name and compress the remaing good characters into a string.
Kyle Jorgensen
Veteran Member
Posts: 122
2/13/2014 2:31 PM
Split
I presume you mean javascript.
Use the string replace method combined with a regular expression.
See www.w3schools.com for a very easy to navigate and thorough reference to the javascript language.
[code] var strString = "My Name"; var strJustUppers = strString.replace(/[a-z]/g,""); // replace lower case letters with nothing var strJustUppers = strJustUppers.replace(/\s/g,""); // replace spaces with nothing [/code]
After the code above execute, the variable strJustUppers should have the value of "MN".
MC
Advanced Member
Posts: 41
2/18/2014 1:22 PM
Split
thanks so much, I was able to use this:
AlphaLastName.replace(/[^a-zA-Z]/,"") it is more than just spaces, need to get rid of dash..apostrophe and all the 'funky' characters in the last name
Please
login
to post a reply.