RegEx_api

CollectInfo

collectInfo

get some informations about a Text


/apitalk/regex/CollectInfo/Phrase

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/regex/CollectInfo/Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CollectInfoApi;

import java.io.File;
import java.util.*;

public class CollectInfoApiExample {

    public static void main(String[] args) {
        
        CollectInfoApi apiInstance = new CollectInfoApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        try {
            CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CollectInfoApi#collectInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CollectInfoApi;

public class CollectInfoApiExample {

    public static void main(String[] args) {
        CollectInfoApi apiInstance = new CollectInfoApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        try {
            CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CollectInfoApi#collectInfo");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *phrase = phrase_example; // your text

CollectInfoApi *apiInstance = [[CollectInfoApi alloc] init];

// get some informations about a Text
[apiInstance collectInfoWith:apiecoKey
    phrase:phrase
              completionHandler: ^(CollectInfo_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RegExApi = require('reg_ex_api');

var api = new RegExApi.CollectInfoApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var phrase = phrase_example; // {String} your text


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.collectInfo(apiecoKey, phrase, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class collectInfoExample
    {
        public void main()
        {
            
            var apiInstance = new CollectInfoApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var phrase = phrase_example;  // String | your text

            try
            {
                // get some informations about a Text
                CollectInfo_response result = apiInstance.collectInfo(apiecoKey, phrase);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CollectInfoApi.collectInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CollectInfoApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$phrase = phrase_example; // String | your text

try {
    $result = $api_instance->collectInfo($apiecoKey, $phrase);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CollectInfoApi->collectInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CollectInfoApi;

my $api_instance = WWW::SwaggerClient::CollectInfoApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $phrase = phrase_example; # String | your text

eval { 
    my $result = $api_instance->collectInfo(apiecoKey => $apiecoKey, phrase => $phrase);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CollectInfoApi->collectInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CollectInfoApi()
apiecoKey = apiecoKey_example # String | apikey for use API
phrase = phrase_example # String | your text

try: 
    # get some informations about a Text
    api_response = api_instance.collect_info(apiecoKey, phrase)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectInfoApi->collectInfo: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Phrase*
String
your text
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


CountWordInPhrase

countWordInPhrase

geting count of The word in the Text


/apitalk/regex/count/Word_In_Phrase

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/regex/count/Word_In_Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CountWordInPhraseApi;

import java.io.File;
import java.util.*;

public class CountWordInPhraseApiExample {

    public static void main(String[] args) {
        
        CountWordInPhraseApi apiInstance = new CountWordInPhraseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        String word = word_example; // String | your word
        try {
            count_Word_In_Phrase_response result = apiInstance.countWordInPhrase(apiecoKey, phrase, word);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountWordInPhraseApi#countWordInPhrase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CountWordInPhraseApi;

public class CountWordInPhraseApiExample {

    public static void main(String[] args) {
        CountWordInPhraseApi apiInstance = new CountWordInPhraseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        String word = word_example; // String | your word
        try {
            count_Word_In_Phrase_response result = apiInstance.countWordInPhrase(apiecoKey, phrase, word);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountWordInPhraseApi#countWordInPhrase");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *phrase = phrase_example; // your text
String *word = word_example; // your word

CountWordInPhraseApi *apiInstance = [[CountWordInPhraseApi alloc] init];

// geting count of The word in the Text
[apiInstance countWordInPhraseWith:apiecoKey
    phrase:phrase
    word:word
              completionHandler: ^(count_Word_In_Phrase_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RegExApi = require('reg_ex_api');

var api = new RegExApi.CountWordInPhraseApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var phrase = phrase_example; // {String} your text

var word = word_example; // {String} your word


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countWordInPhrase(apiecoKey, phrase, word, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countWordInPhraseExample
    {
        public void main()
        {
            
            var apiInstance = new CountWordInPhraseApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var phrase = phrase_example;  // String | your text
            var word = word_example;  // String | your word

            try
            {
                // geting count of The word in the Text
                count_Word_In_Phrase_response result = apiInstance.countWordInPhrase(apiecoKey, phrase, word);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CountWordInPhraseApi.countWordInPhrase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CountWordInPhraseApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$phrase = phrase_example; // String | your text
$word = word_example; // String | your word

try {
    $result = $api_instance->countWordInPhrase($apiecoKey, $phrase, $word);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountWordInPhraseApi->countWordInPhrase: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CountWordInPhraseApi;

my $api_instance = WWW::SwaggerClient::CountWordInPhraseApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $phrase = phrase_example; # String | your text
my $word = word_example; # String | your word

eval { 
    my $result = $api_instance->countWordInPhrase(apiecoKey => $apiecoKey, phrase => $phrase, word => $word);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CountWordInPhraseApi->countWordInPhrase: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CountWordInPhraseApi()
apiecoKey = apiecoKey_example # String | apikey for use API
phrase = phrase_example # String | your text
word = word_example # String | your word

try: 
    # geting count of The word in the Text
    api_response = api_instance.count_word_in_phrase(apiecoKey, phrase, word)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CountWordInPhraseApi->countWordInPhrase: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Phrase*
String
your text
Required
word*
String
your word
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


CountWordPhrase

countWordPhrase

geting count of word in the Text


/apitalk/regex/count/WordPhrase

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/regex/count/WordPhrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CountWordPhraseApi;

import java.io.File;
import java.util.*;

public class CountWordPhraseApiExample {

    public static void main(String[] args) {
        
        CountWordPhraseApi apiInstance = new CountWordPhraseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        try {
            count_WordPhrase_response result = apiInstance.countWordPhrase(apiecoKey, phrase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountWordPhraseApi#countWordPhrase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CountWordPhraseApi;

public class CountWordPhraseApiExample {

    public static void main(String[] args) {
        CountWordPhraseApi apiInstance = new CountWordPhraseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        try {
            count_WordPhrase_response result = apiInstance.countWordPhrase(apiecoKey, phrase);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CountWordPhraseApi#countWordPhrase");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *phrase = phrase_example; // your text

CountWordPhraseApi *apiInstance = [[CountWordPhraseApi alloc] init];

// geting count of word in the Text
[apiInstance countWordPhraseWith:apiecoKey
    phrase:phrase
              completionHandler: ^(count_WordPhrase_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RegExApi = require('reg_ex_api');

var api = new RegExApi.CountWordPhraseApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var phrase = phrase_example; // {String} your text


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countWordPhrase(apiecoKey, phrase, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countWordPhraseExample
    {
        public void main()
        {
            
            var apiInstance = new CountWordPhraseApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var phrase = phrase_example;  // String | your text

            try
            {
                // geting count of word in the Text
                count_WordPhrase_response result = apiInstance.countWordPhrase(apiecoKey, phrase);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CountWordPhraseApi.countWordPhrase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CountWordPhraseApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$phrase = phrase_example; // String | your text

try {
    $result = $api_instance->countWordPhrase($apiecoKey, $phrase);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountWordPhraseApi->countWordPhrase: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CountWordPhraseApi;

my $api_instance = WWW::SwaggerClient::CountWordPhraseApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $phrase = phrase_example; # String | your text

eval { 
    my $result = $api_instance->countWordPhrase(apiecoKey => $apiecoKey, phrase => $phrase);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CountWordPhraseApi->countWordPhrase: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CountWordPhraseApi()
apiecoKey = apiecoKey_example # String | apikey for use API
phrase = phrase_example # String | your text

try: 
    # geting count of word in the Text
    api_response = api_instance.count_word_phrase(apiecoKey, phrase)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CountWordPhraseApi->countWordPhrase: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Phrase*
String
your text
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error


Replace

replace

replace one word with another word in the text


/apitalk/regex/replace

Usage and SDK Samples

curl -X POST "https://api.apieco.ir/apitalk/regex/replace"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReplaceApi;

import java.io.File;
import java.util.*;

public class ReplaceApiExample {

    public static void main(String[] args) {
        
        ReplaceApi apiInstance = new ReplaceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        String oldWord = oldWord_example; // String | your Old Word
        String newWord = newWord_example; // String | your New Word
        try {
            replace_response result = apiInstance.replace(apiecoKey, phrase, oldWord, newWord);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReplaceApi#replace");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReplaceApi;

public class ReplaceApiExample {

    public static void main(String[] args) {
        ReplaceApi apiInstance = new ReplaceApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        String phrase = phrase_example; // String | your text
        String oldWord = oldWord_example; // String | your Old Word
        String newWord = newWord_example; // String | your New Word
        try {
            replace_response result = apiInstance.replace(apiecoKey, phrase, oldWord, newWord);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReplaceApi#replace");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *phrase = phrase_example; // your text
String *oldWord = oldWord_example; // your Old Word
String *newWord = newWord_example; // your New Word

ReplaceApi *apiInstance = [[ReplaceApi alloc] init];

// replace one word with another word in the text
[apiInstance replaceWith:apiecoKey
    phrase:phrase
    oldWord:oldWord
    newWord:newWord
              completionHandler: ^(replace_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RegExApi = require('reg_ex_api');

var api = new RegExApi.ReplaceApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var phrase = phrase_example; // {String} your text

var oldWord = oldWord_example; // {String} your Old Word

var newWord = newWord_example; // {String} your New Word


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.replace(apiecoKey, phrase, oldWord, newWord, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class replaceExample
    {
        public void main()
        {
            
            var apiInstance = new ReplaceApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var phrase = phrase_example;  // String | your text
            var oldWord = oldWord_example;  // String | your Old Word
            var newWord = newWord_example;  // String | your New Word

            try
            {
                // replace one word with another word in the text
                replace_response result = apiInstance.replace(apiecoKey, phrase, oldWord, newWord);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReplaceApi.replace: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ReplaceApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$phrase = phrase_example; // String | your text
$oldWord = oldWord_example; // String | your Old Word
$newWord = newWord_example; // String | your New Word

try {
    $result = $api_instance->replace($apiecoKey, $phrase, $oldWord, $newWord);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReplaceApi->replace: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReplaceApi;

my $api_instance = WWW::SwaggerClient::ReplaceApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $phrase = phrase_example; # String | your text
my $oldWord = oldWord_example; # String | your Old Word
my $newWord = newWord_example; # String | your New Word

eval { 
    my $result = $api_instance->replace(apiecoKey => $apiecoKey, phrase => $phrase, oldWord => $oldWord, newWord => $newWord);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReplaceApi->replace: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ReplaceApi()
apiecoKey = apiecoKey_example # String | apikey for use API
phrase = phrase_example # String | your text
oldWord = oldWord_example # String | your Old Word
newWord = newWord_example # String | your New Word

try: 
    # replace one word with another word in the text
    api_response = api_instance.replace(apiecoKey, phrase, oldWord, newWord)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReplaceApi->replace: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
Phrase*
String
your text
Required
OldWord*
String
your Old Word
Required
NewWord*
String
your New Word
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error