String Filtering

  • Last Post 2 days ago posted this 4 days ago

How to check if a string contains any digit or not. Like Suppose i have a string as "only 234 people can go"

1. In this i want to check if there is any numeric value is there or not. And also the format of string is not fixed digits can be at any position in the string.

2. From above if there is any digit in the string then I want to get only the digits from the string. From above example i want Only the "234"




Order By: Standard | Newest | Votes
Swathi Muppalla posted this 2 days ago

Hi Pankaj,

Thanks for your interest in INTELLIBOT!
If you want to extract Numeric values in String DataType. 

Follow these steps:
1. Go to Menu bar Click on SETTINGS  then Click on Plugin Manager.
2. Select NATURAL LANGUAGE PROCESSING (NLP) Connector and Install it.
3. Click on Ok.
4. Right-Click on Plugin and Add Plugin.
5. Select NLP Connector and click on OK.
6. In Toolbox, select Cognitive, click on Natural Language select Extract.
7. Drag the Extract Method & drop it into the Design surface. 
8. In the Text field, enter the required text. For example (554 people can go to a workshop in Intellibot).

9. Select the Recognition type as Number and execute. This extracts the numbers from the string and the result can be viewed using the output port.

Please let us know if you are still facing any issues.


Swathi Muppalla posted this 2 days ago

Hi Swathi,

Thanks for your response but there is an issue with the approach given by you.

If the string have no space between a character and a number then the above approach is not working eg. "Only2345 people can go" in this case the given approach is not working.